Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 72154
b: refs/heads/master
c: 151941a
h: refs/heads/master
v: v3
  • Loading branch information
Matt Waddel authored and Linus Torvalds committed Oct 23, 2007
1 parent 76f162e commit bc0f672
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f909b1ef8ce3e93d1cf66f33313d8ed11102e87f
refs/heads/master: 151941a800fd9598d38f8b5a73de0471afe66507
5 changes: 4 additions & 1 deletion trunk/arch/m68knommu/platform/5307/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ ENTRY(system_call)
movel %sp,%d2 /* get thread_info pointer */
andl #-THREAD_SIZE,%d2 /* at start of kernel stack */
movel %d2,%a0
movel %sp,%a0@(THREAD_ESP0) /* save top of frame */
movel %a0@,%a1 /* save top of frame */
movel %sp,%a1@(TASK_THREAD+THREAD_ESP0)
btst #(TIF_SYSCALL_TRACE%8),%a0@(TI_FLAGS+(31-TIF_SYSCALL_TRACE)/8)
bnes 1f

Expand All @@ -83,6 +84,8 @@ ENTRY(system_call)
movel %d0,%sp@(PT_D0) /* save the return value */
jra ret_from_exception
1:
movel #-ENOSYS,%d2 /* strace needs -ENOSYS in PT_D0 */
movel %d2,PT_D0(%sp) /* on syscall entry */
subql #4,%sp
SAVE_SWITCH_STACK
jbsr syscall_trace
Expand Down

0 comments on commit bc0f672

Please sign in to comment.