X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Fum%2Fsys-x86_64%2Fptrace_user.c;h=12e404c6fa467f5789c5dbe66e41a60ddb722e6e;hb=f7f1b0f1e2fbadeab12d24236000e778aa9b1ead;hp=e1f8bacc5f1ae6a0d4a0497e78279e6f680a9408;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/arch/um/sys-x86_64/ptrace_user.c b/arch/um/sys-x86_64/ptrace_user.c index e1f8bacc5..12e404c6f 100644 --- a/arch/um/sys-x86_64/ptrace_user.c +++ b/arch/um/sys-x86_64/ptrace_user.c @@ -6,9 +6,7 @@ #include #include -#define __FRAME_OFFSETS -#include -#include +#include "ptrace_user.h" #include "user.h" #include "kern_constants.h" @@ -42,23 +40,12 @@ void arch_enter_kernel(void *task, int pid) void arch_leave_kernel(void *task, int pid) { #ifdef UM_USER_CS - if(ptrace(PTRACE_POKEUSER, pid, CS, UM_USER_CS) < 0) - tracer_panic("POKEUSER CS failed"); + if(ptrace(PTRACE_POKEUSR, pid, CS, UM_USER_CS) < 0) + printk("POKEUSR CS failed"); #endif - if(ptrace(PTRACE_POKEUSER, pid, DS, __USER_DS) < 0) - tracer_panic("POKEUSER DS failed"); - if(ptrace(PTRACE_POKEUSER, pid, ES, __USER_DS) < 0) - tracer_panic("POKEUSER ES failed"); + if(ptrace(PTRACE_POKEUSR, pid, DS, __USER_DS) < 0) + printk("POKEUSR DS failed"); + if(ptrace(PTRACE_POKEUSR, pid, ES, __USER_DS) < 0) + printk("POKEUSR ES failed"); } - -/* - * Overrides for Emacs so that we follow Linus's tabbing style. - * Emacs will notice this stuff at the end of the file and automatically - * adjust the settings for this buffer only. This must remain at the end - * of the file. - * --------------------------------------------------------------------------- - * Local variables: - * c-file-style: "linux" - * End: - */