[patch 1/1] uml: add profile_pc for i386

From: blaisorblade
Date: Mon Jun 20 2005 - 20:50:37 EST



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@xxxxxxxx>
---

linux-2.6.git-paolo/include/asm-um/ptrace-i386.h | 4 ++++
1 files changed, 4 insertions(+)

diff -puN include/asm-um/ptrace-i386.h~uml-add-profile-pc-i386 include/asm-um/ptrace-i386.h
--- linux-2.6.git/include/asm-um/ptrace-i386.h~uml-add-profile-pc-i386 2005-06-07 18:57:00.000000000 +0200
+++ linux-2.6.git-paolo/include/asm-um/ptrace-i386.h 2005-06-07 18:59:26.000000000 +0200
@@ -32,6 +32,10 @@
#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
_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/