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

Commit db2e1f43 authored by Martin Schwidefsky's avatar Martin Schwidefsky
Browse files

s390/hwcaps: do not report high gprs for 31 bit kernel



The bit for high gprs in the AT_HWCAP auxiliary vector field and the
highgprs tag in the output of /proc/cpuinfo should not be set for
31 bit kernels.

Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 3368ba25
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -974,11 +974,13 @@ static void __init setup_hwcaps(void)
	if (MACHINE_HAS_HPAGE)
		elf_hwcap |= HWCAP_S390_HPAGE;

#if defined(CONFIG_64BIT)
	/*
	 * 64-bit register support for 31-bit processes
	 * HWCAP_S390_HIGH_GPRS is bit 9.
	 */
	elf_hwcap |= HWCAP_S390_HIGH_GPRS;
#endif

	get_cpu_id(&cpu_id);
	switch (cpu_id.machine) {