Skip to contentSkip to conversation

voyager: use struct instead of PARAM

PATCH New Randy Dunlap 1 participant 1 message Oct 22, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 voyager: use struct instead of PARAM

From: Randy Dunlap <[email protected]>

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)

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