Skip to content

Commit

Permalink
[PATCH] uml: fix compile failure for TT mode
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Miklos Szeredi authored and Linus Torvalds committed Oct 24, 2005
1 parent a69ac4a commit 10ded94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/um/include/sysdep-i386/thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion arch/um/include/sysdep-x86_64/thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 10ded94

Please sign in to comment.