Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

voyager: use struct instead of PARAM

Use struct boot_params instead of PARAM + 0xoffsets.
Fixes one of many Voyager build problems.

arch/x86/kernel/setup_32.c:543: error: 'PARAM' undeclared (first use in this function)

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

authored by

Randy Dunlap and committed by
Thomas Gleixner
1a0c3ea6 3c5fd9c7

+3 -1
+3 -1
include/asm-x86/mach-voyager/setup_arch.h
··· 1 1 #include <asm/voyager.h> 2 - #define VOYAGER_BIOS_INFO ((struct voyager_bios_info *)(PARAM+0x40)) 2 + #include <asm/setup_32.h> 3 + #define VOYAGER_BIOS_INFO ((struct voyager_bios_info *) \ 4 + (&boot_params.apm_bios_info)) 3 5 4 6 /* Hook to call BIOS initialisation function */ 5 7