]> err.no Git - linux-2.6/blobdiff - include/asm-um/ptrace-i386.h
[PATCH] x86_64: Flexmap for 32bit and randomized mappings for 64bit
[linux-2.6] / include / asm-um / ptrace-i386.h
index 9e47590ec293b7c9e444f8fd02e0ffd9f3f3b942..fe882b9d917eb3d42d4fb73151a833271ef1c8e3 100644 (file)
@@ -6,6 +6,8 @@
 #ifndef __UM_PTRACE_I386_H
 #define __UM_PTRACE_I386_H
 
+#define HOST_AUDIT_ARCH AUDIT_ARCH_I386
+
 #include "sysdep/ptrace.h"
 #include "asm/ptrace-generic.h"
 
 #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