Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 94ed1f2c authored by Will Deacon's avatar Will Deacon Committed by Catalin Marinas
Browse files

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: default avatarWill Deacon <will.deacon@arm.com>
Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent 5436b5c8
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -119,7 +119,7 @@ static void __init setup_processor(void)
	printk("CPU: %s [%08x] revision %d\n",
	printk("CPU: %s [%08x] revision %d\n",
	       cpu_name, read_cpuid_id(), read_cpuid_id() & 15);
	       cpu_name, read_cpuid_id(), read_cpuid_id() & 15);


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