aboutsummaryrefslogtreecommitdiff
path: root/include/asm-x86/setup_64.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-10-15 17:13:22 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-10-16 17:38:31 -0700
commit30c826451d3e5bbc6e11bba0e7fee5d2f49d9b75 (patch)
tree61abd11d1703673ff21227d42ed4b07d85dd0290 /include/asm-x86/setup_64.h
parent2b0460b534f383eca744eb8fff66ec9f57e702b9 (diff)
[x86] remove uses of magic macros for boot_params access
Instead of using magic macros for boot_params access, simply use the boot_params structure. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'include/asm-x86/setup_64.h')
-rw-r--r--include/asm-x86/setup_64.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/asm-x86/setup_64.h b/include/asm-x86/setup_64.h
index eaeff73d6c1..a04aadcccf6 100644
--- a/include/asm-x86/setup_64.h
+++ b/include/asm-x86/setup_64.h
@@ -3,4 +3,17 @@
#define COMMAND_LINE_SIZE 2048
+#ifdef __KERNEL__
+
+#ifndef __ASSEMBLY__
+#include <asm/bootparam.h>
+
+/*
+ * This is set up by the setup-routine at boot-time
+ */
+extern struct boot_params boot_params;
+
+#endif /* not __ASSEMBLY__ */
+#endif /* __KERNEL__ */
+
#endif