Skip to content

Commit

Permalink
arm64: setup: report ELF_PLATFORM as the machine for utsname
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Will Deacon authored and Catalin Marinas committed Oct 25, 2013
1 parent 5436b5c commit 94ed1f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm64/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ static void __init setup_processor(void)
printk("CPU: %s [%08x] revision %d\n",
cpu_name, read_cpuid_id(), read_cpuid_id() & 15);

sprintf(init_utsname()->machine, "aarch64");
sprintf(init_utsname()->machine, ELF_PLATFORM);
elf_hwcap = 0;
}

Expand Down

0 comments on commit 94ed1f2

Please sign in to comment.