Skip to content

Commit 94ed1f2

Browse files
wildea01ctmarinas
authored andcommitted
arm64: setup: report ELF_PLATFORM as the machine for utsname
uname -m reports the machine field from the current utsname, which should reflect the endianness of the system. This patch reports ELF_PLATFORM for the field, so that everything appears consistent from userspace. Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
1 parent 5436b5c commit 94ed1f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/arm64/kernel/setup.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ static void __init setup_processor(void)
119119
printk("CPU: %s [%08x] revision %d\n",
120120
cpu_name, read_cpuid_id(), read_cpuid_id() & 15);
121121

122-
sprintf(init_utsname()->machine, "aarch64");
122+
sprintf(init_utsname()->machine, ELF_PLATFORM);
123123
elf_hwcap = 0;
124124
}
125125

0 commit comments

Comments
 (0)