From b1e059a46764cd22c3411e66c117dc9d2a607242 Mon Sep 17 00:00:00 2001 From: Chuck Ebbert <76306.1226@compuserve.com> Date: Thu, 23 Mar 2006 02:59:48 -0800 Subject: [PATCH] --- yaml --- r: 23001 b: refs/heads/master c: 635cf99a80f4ebee59d70eb64bb85ce829e4591f h: refs/heads/master i: 22999: 76b0103a239ad55e6e33a5bcf94f9197c6e97680 v: v3 --- [refs] | 2 +- trunk/arch/i386/kernel/entry.S | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index fc11597c3225..9fe54c897a6a 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: db753bdfc24c31228996799d508ce3bf7cbe3b99 +refs/heads/master: 635cf99a80f4ebee59d70eb64bb85ce829e4591f diff --git a/trunk/arch/i386/kernel/entry.S b/trunk/arch/i386/kernel/entry.S index 4d704724b2f5..cfc683f153b9 100644 --- a/trunk/arch/i386/kernel/entry.S +++ b/trunk/arch/i386/kernel/entry.S @@ -226,6 +226,10 @@ ENTRY(system_call) pushl %eax # save orig_eax SAVE_ALL GET_THREAD_INFO(%ebp) + testl $TF_MASK,EFLAGS(%esp) + jz no_singlestep + orl $_TIF_SINGLESTEP,TI_flags(%ebp) +no_singlestep: # system call tracing in operation / emulation /* Note, _TIF_SECCOMP is bit number 8, and so it needs testw and not testb */ testw $(_TIF_SYSCALL_EMU|_TIF_SYSCALL_TRACE|_TIF_SECCOMP|_TIF_SYSCALL_AUDIT),TI_flags(%ebp)