mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] voyager: use struct instead of PARAM
@ 2007-10-22 15:37 Randy Dunlap
  0 siblings, 0 replies; only message in thread
From: Randy Dunlap @ 2007-10-22 15:37 UTC (permalink / raw)
  To: lkml; +Cc: James.Bottomley

From: Randy Dunlap <randy.dunlap@oracle.com>

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>
---
 include/asm-x86/mach-voyager/setup_arch.h |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

--- linux-2623-g14-x32.orig/include/asm-x86/mach-voyager/setup_arch.h
+++ linux-2623-g14-x32/include/asm-x86/mach-voyager/setup_arch.h
@@ -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 */
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-10-22 15:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-22 15:37 [PATCH] voyager: use struct instead of PARAM Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®