]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] uml: add profile_pc for i386
authorPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Sat, 25 Jun 2005 21:55:26 +0000 (14:55 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 25 Jun 2005 23:24:36 +0000 (16:24 -0700)
Cope with a conditional i386 definition, which is wrong for UML.  Before we
just used that one, but it wasn't defined for CONFIG_SMP, so in that case
we got link errors.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-um/ptrace-i386.h

index 04222f35c43e2cd0a64b9b28e390be9953104ee6..fe882b9d917eb3d42d4fb73151a833271ef1c8e3 100644 (file)
 #define PT_REGS_SYSCALL_RET(r) PT_REGS_EAX(r)
 #define PT_FIX_EXEC_STACK(sp) do ; while(0)
 
+/* Cope with a conditional i386 definition. */
+#undef profile_pc
+#define profile_pc(regs) PT_REGS_IP(regs)
+
 #define user_mode(r) UPT_IS_USER(&(r)->regs)
 
 #endif