git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
m68knommu: convert to using tracehook_report_syscall_*
[pandora-kernel.git]
/
arch
/
m68knommu
/
platform
/
68328
/
entry.S
diff --git
a/arch/m68knommu/platform/68328/entry.S
b/arch/m68knommu/platform/68328/entry.S
index
9d80d2c
..
27241e1
100644
(file)
--- a/
arch/m68knommu/platform/68328/entry.S
+++ b/
arch/m68knommu/platform/68328/entry.S
@@
-43,10
+43,10
@@
badsys:
jra ret_from_exception
do_trace:
jra ret_from_exception
do_trace:
- movel #-ENOSYS,%sp@(PT_OFF_D0)
/* needed for strace*/
+ movel #-ENOSYS,%sp@(PT_OFF_D0) /* needed for strace*/
subql #4,%sp
SAVE_SWITCH_STACK
subql #4,%sp
SAVE_SWITCH_STACK
- jbsr syscall_trace
+ jbsr syscall_trace
_enter
RESTORE_SWITCH_STACK
addql #4,%sp
movel %sp@(PT_OFF_ORIG_D0),%d1
RESTORE_SWITCH_STACK
addql #4,%sp
movel %sp@(PT_OFF_ORIG_D0),%d1
@@
-57,10
+57,10
@@
do_trace:
lea sys_call_table, %a0
jbsr %a0@(%d1)
lea sys_call_table, %a0
jbsr %a0@(%d1)
-1: movel %d0,%sp@(PT_OFF_D0)
/* save the return value */
+1: movel %d0,%sp@(PT_OFF_D0) /* save the return value */
subql #4,%sp /* dummy return address */
SAVE_SWITCH_STACK
subql #4,%sp /* dummy return address */
SAVE_SWITCH_STACK
- jbsr syscall_trace
+ jbsr syscall_trace
_leave
ret_from_signal:
RESTORE_SWITCH_STACK
ret_from_signal:
RESTORE_SWITCH_STACK
@@
-71,16
+71,16
@@
ENTRY(system_call)
SAVE_ALL
/* save top of frame*/
SAVE_ALL
/* save top of frame*/
- pea %sp@
- jbsr set_esp0
- addql #4,%sp
+ pea %sp@
+ jbsr set_esp0
+ addql #4,%sp
movel %sp@(PT_OFF_ORIG_D0),%d0
movel %sp,%d1 /* get thread_info pointer */
andl #-THREAD_SIZE,%d1
movel %d1,%a2
movel %sp@(PT_OFF_ORIG_D0),%d0
movel %sp,%d1 /* get thread_info pointer */
andl #-THREAD_SIZE,%d1
movel %d1,%a2
- btst #
TIF_SYSCALL_TRACE,%a2@(TI_FLAGS
)
+ btst #
(TIF_SYSCALL_TRACE%8),%a2@(TI_FLAGS+(31-TIF_SYSCALL_TRACE)/8
)
jne do_trace
cmpl #NR_syscalls,%d0
jcc badsys
jne do_trace
cmpl #NR_syscalls,%d0
jcc badsys
@@
-88,10
+88,10
@@
ENTRY(system_call)
lea sys_call_table,%a0
movel %a0@(%d0), %a0
jbsr %a0@
lea sys_call_table,%a0
movel %a0@(%d0), %a0
jbsr %a0@
- movel %d0,%sp@(PT_OFF_D0)
/* save the return value*/
+ movel %d0,%sp@(PT_OFF_D0) /* save the return value*/
ret_from_exception:
ret_from_exception:
- btst #5,%sp@(PT_OFF_SR)
/* check if returning to kernel*/
+ btst #5,%sp@(PT_OFF_SR) /* check if returning to kernel*/
jeq Luser_return /* if so, skip resched, signals*/
Lkernel_return:
jeq Luser_return /* if so, skip resched, signals*/
Lkernel_return:
@@
-133,7
+133,7
@@
Lreturn:
*/
inthandler1:
SAVE_ALL
*/
inthandler1:
SAVE_ALL
- movew %sp@(PT_OFF_
VECTOR
), %d0
+ movew %sp@(PT_OFF_
FORMATVEC
), %d0
and #0x3ff, %d0
movel %sp,%sp@-
and #0x3ff, %d0
movel %sp,%sp@-
@@
-144,7
+144,7
@@
inthandler1:
inthandler2:
SAVE_ALL
inthandler2:
SAVE_ALL
- movew %sp@(PT_OFF_
VECTOR
), %d0
+ movew %sp@(PT_OFF_
FORMATVEC
), %d0
and #0x3ff, %d0
movel %sp,%sp@-
and #0x3ff, %d0
movel %sp,%sp@-
@@
-155,7
+155,7
@@
inthandler2:
inthandler3:
SAVE_ALL
inthandler3:
SAVE_ALL
- movew %sp@(PT_OFF_
VECTOR
), %d0
+ movew %sp@(PT_OFF_
FORMATVEC
), %d0
and #0x3ff, %d0
movel %sp,%sp@-
and #0x3ff, %d0
movel %sp,%sp@-
@@
-166,7
+166,7
@@
inthandler3:
inthandler4:
SAVE_ALL
inthandler4:
SAVE_ALL
- movew %sp@(PT_OFF_
VECTOR
), %d0
+ movew %sp@(PT_OFF_
FORMATVEC
), %d0
and #0x3ff, %d0
movel %sp,%sp@-
and #0x3ff, %d0
movel %sp,%sp@-
@@
-177,7
+177,7
@@
inthandler4:
inthandler5:
SAVE_ALL
inthandler5:
SAVE_ALL
- movew %sp@(PT_OFF_
VECTOR
), %d0
+ movew %sp@(PT_OFF_
FORMATVEC
), %d0
and #0x3ff, %d0
movel %sp,%sp@-
and #0x3ff, %d0
movel %sp,%sp@-
@@
-188,7
+188,7
@@
inthandler5:
inthandler6:
SAVE_ALL
inthandler6:
SAVE_ALL
- movew %sp@(PT_OFF_
VECTOR
), %d0
+ movew %sp@(PT_OFF_
FORMATVEC
), %d0
and #0x3ff, %d0
movel %sp,%sp@-
and #0x3ff, %d0
movel %sp,%sp@-
@@
-199,7
+199,7
@@
inthandler6:
inthandler7:
SAVE_ALL
inthandler7:
SAVE_ALL
- movew %sp@(PT_OFF_
VECTOR
), %d0
+ movew %sp@(PT_OFF_
FORMATVEC
), %d0
and #0x3ff, %d0
movel %sp,%sp@-
and #0x3ff, %d0
movel %sp,%sp@-
@@
-210,7
+210,7
@@
inthandler7:
inthandler:
SAVE_ALL
inthandler:
SAVE_ALL
- movew %sp@(PT_OFF_
VECTOR
), %d0
+ movew %sp@(PT_OFF_
FORMATVEC
), %d0
and #0x3ff, %d0
movel %sp,%sp@-
and #0x3ff, %d0
movel %sp,%sp@-