aboutsummaryrefslogtreecommitdiffstats
path: root/arch/frv/kernel/entry.S
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2009-06-11 08:05:24 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-06-11 12:01:26 -0400
commit4a3b98932270f5d69f2c081924e356325ed704d9 (patch)
treee2a8e37a37ed7e3be32c12ea233ea18c389549d0 /arch/frv/kernel/entry.S
parent24ceb7e8a6c5dd6e32ac3d43a2424542c97989f5 (diff)
FRV: Implement new-style ptrace
Implement the new-style ptrace for FRV, including adding appropriate tracehooks. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/frv/kernel/entry.S')
-rw-r--r--arch/frv/kernel/entry.S12
1 files changed, 5 insertions, 7 deletions
diff --git a/arch/frv/kernel/entry.S b/arch/frv/kernel/entry.S
index 268dfbddee3b..356e0e327a89 100644
--- a/arch/frv/kernel/entry.S
+++ b/arch/frv/kernel/entry.S
@@ -1149,11 +1149,10 @@ __entry_work_notifysig:
1149 # perform syscall entry tracing 1149 # perform syscall entry tracing
1150__syscall_trace_entry: 1150__syscall_trace_entry:
1151 LEDS 0x6320 1151 LEDS 0x6320
1152 setlos.p #0,gr8 1152 call syscall_trace_entry
1153 call do_syscall_trace
1154 1153
1155 ldi @(gr28,#REG_SYSCALLNO),gr7 1154 lddi.p @(gr28,#REG_GR(8)) ,gr8
1156 lddi @(gr28,#REG_GR(8)) ,gr8 1155 ori gr8,#0,gr7 ; syscall_trace_entry() returned new syscallno
1157 lddi @(gr28,#REG_GR(10)),gr10 1156 lddi @(gr28,#REG_GR(10)),gr10
1158 lddi.p @(gr28,#REG_GR(12)),gr12 1157 lddi.p @(gr28,#REG_GR(12)),gr12
1159 1158
@@ -1168,11 +1167,10 @@ __syscall_exit_work:
1168 beq icc0,#1,__entry_work_pending 1167 beq icc0,#1,__entry_work_pending
1169 1168
1170 movsg psr,gr23 1169 movsg psr,gr23
1171 andi gr23,#~PSR_PIL,gr23 ; could let do_syscall_trace() call schedule() 1170 andi gr23,#~PSR_PIL,gr23 ; could let syscall_trace_exit() call schedule()
1172 movgs gr23,psr 1171 movgs gr23,psr
1173 1172
1174 setlos.p #1,gr8 1173 call syscall_trace_exit
1175 call do_syscall_trace
1176 bra __entry_resume_userspace 1174 bra __entry_resume_userspace
1177 1175
1178__syscall_badsys: 1176__syscall_badsys: