[PATCH] uml: fix compile failure for TT mode
authorMiklos Szeredi <miklos@szeredi.hu>
Mon, 24 Oct 2005 15:49:34 +0000 (17:49 +0200)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 24 Oct 2005 15:59:25 +0000 (08:59 -0700)
Without this patch, uml compile fails with:

  LD      .tmp_vmlinux1
arch/um/kernel/built-in.o: In function `config_gdb_cb':
arch/um/kernel/tt/gdb.c:129: undefined reference to `TASK_EXTERN_PID'

Tested on i386, but fix needed on x86_64 too AFAICS.

Signed-off-by: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/um/include/sysdep-i386/thread.h
arch/um/include/sysdep-x86_64/thread.h

index e2bd6bae8b8aea0142d8fddb7eed0efe8cfcf672..243fed44d780693ca0c0e374605443ac1ef53742 100644 (file)
@@ -4,7 +4,7 @@
 #include <kern_constants.h>
 
 #define TASK_DEBUGREGS(task) ((unsigned long *) &(((char *) (task))[HOST_TASK_DEBUGREGS]))
-#ifdef CONFIG_MODE_TT
+#ifdef UML_CONFIG_MODE_TT
 #define TASK_EXTERN_PID(task) *((int *) &(((char *) (task))[HOST_TASK_EXTERN_PID]))
 #endif
 
index 6a76a7f3683ff1a821a59101c8162058b339b677..cbef3e1697f41f444fa61dc1bf17e039ee43abc7 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <kern_constants.h>
 
-#ifdef CONFIG_MODE_TT
+#ifdef UML_CONFIG_MODE_TT
 #define TASK_EXTERN_PID(task) *((int *) &(((char *) (task))[HOST_TASK_EXTERN_PID]))
 #endif