Commit 2e869a2a authored by Greg Ungerer's avatar Greg Ungerer Committed by David Woodhouse

[PATCH] fix broken trace flag check in 68328 system call entry

parent ac52c76d
...@@ -76,7 +76,12 @@ ENTRY(system_call) ...@@ -76,7 +76,12 @@ ENTRY(system_call)
jbsr set_esp0 jbsr set_esp0
addql #4,%sp addql #4,%sp
btst #PF_TRACESYS_BIT,%a2@(TASK_FLAGS+PF_TRACESYS_OFF) movel %sp@(PT_ORIG_D0),%d0
movel %sp,%d1 /* get thread_info pointer */
andl #0xffffe000,%d1
movel %d1,%a2
btst #TIF_SYSCALL_TRACE,%a2@(TI_FLAGS)
jne do_trace jne do_trace
cmpl #NR_syscalls,%d0 cmpl #NR_syscalls,%d0
jcc badsys jcc badsys
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment