From Andi Kleen

Random x86_64 fixlets


 arch/x86_64/boot/compressed/head.S |    1 +
 arch/x86_64/boot/compressed/misc.c |    1 +
 include/linux/config.h             |    2 +-
 3 files changed, 3 insertions(+), 1 deletion(-)

diff -puN arch/x86_64/boot/compressed/head.S~x86_64-fixes arch/x86_64/boot/compressed/head.S
--- 25/arch/x86_64/boot/compressed/head.S~x86_64-fixes	2003-06-07 12:34:17.000000000 -0700
+++ 25-akpm/arch/x86_64/boot/compressed/head.S	2003-06-07 12:34:17.000000000 -0700
@@ -26,6 +26,7 @@
 .code32
 .text
 
+#define IN_BOOTLOADER
 #include <linux/linkage.h>
 #include <asm/segment.h>
 
diff -puN arch/x86_64/boot/compressed/misc.c~x86_64-fixes arch/x86_64/boot/compressed/misc.c
--- 25/arch/x86_64/boot/compressed/misc.c~x86_64-fixes	2003-06-07 12:34:17.000000000 -0700
+++ 25-akpm/arch/x86_64/boot/compressed/misc.c	2003-06-07 12:34:17.000000000 -0700
@@ -9,6 +9,7 @@
  * High loaded stuff by Hans Lermen & Werner Almesberger, Feb. 1996
  */
 
+#define IN_BOOTLOADER
 #include "miscsetup.h"
 #include <asm/io.h>
 
diff -puN include/linux/config.h~x86_64-fixes include/linux/config.h
--- 25/include/linux/config.h~x86_64-fixes	2003-06-07 12:34:17.000000000 -0700
+++ 25-akpm/include/linux/config.h	2003-06-07 12:34:17.000000000 -0700
@@ -2,7 +2,7 @@
 #define _LINUX_CONFIG_H
 
 #include <linux/autoconf.h>
-#ifdef CONFIG_X86
+#if defined(__i386__) && !defined(IN_BOOTLOADER)
 #include <asm/kgdb.h>
 #endif
 

_