Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
04a7052c
Commit
04a7052c
authored
Nov 30, 2005
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MIPS] Fix register handling in syscalls when debugging.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
ecd5a739
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
4 deletions
+12
-4
arch/mips/kernel/scall32-o32.S
arch/mips/kernel/scall32-o32.S
+3
-1
arch/mips/kernel/scall64-64.S
arch/mips/kernel/scall64-64.S
+3
-1
arch/mips/kernel/scall64-n32.S
arch/mips/kernel/scall64-n32.S
+3
-1
arch/mips/kernel/scall64-o32.S
arch/mips/kernel/scall64-o32.S
+3
-1
No files found.
arch/mips/kernel/scall32-o32.S
View file @
04a7052c
...
...
@@ -94,11 +94,13 @@ syscall_trace_entry:
li
a1
,
0
jal
do_syscall_trace
move
t0
,
s0
RESTORE_STATIC
lw
a0
,
PT_R4
(
sp
)
#
Restore
argument
registers
lw
a1
,
PT_R5
(
sp
)
lw
a2
,
PT_R6
(
sp
)
lw
a3
,
PT_R7
(
sp
)
jalr
s
0
jalr
t
0
li
t0
,
-
EMAXERRNO
-
1
#
error
?
sltu
t0
,
t0
,
v0
...
...
arch/mips/kernel/scall64-64.S
View file @
04a7052c
...
...
@@ -93,13 +93,15 @@ syscall_trace_entry:
li
a1
,
0
jal
do_syscall_trace
move
t0
,
s0
RESTORE_STATIC
ld
a0
,
PT_R4
(
sp
)
#
Restore
argument
registers
ld
a1
,
PT_R5
(
sp
)
ld
a2
,
PT_R6
(
sp
)
ld
a3
,
PT_R7
(
sp
)
ld
a4
,
PT_R8
(
sp
)
ld
a5
,
PT_R9
(
sp
)
jalr
s
0
jalr
t
0
li
t0
,
-
EMAXERRNO
-
1
#
error
?
sltu
t0
,
t0
,
v0
...
...
arch/mips/kernel/scall64-n32.S
View file @
04a7052c
...
...
@@ -90,13 +90,15 @@ n32_syscall_trace_entry:
li
a1
,
0
jal
do_syscall_trace
move
t0
,
s0
RESTORE_STATIC
ld
a0
,
PT_R4
(
sp
)
#
Restore
argument
registers
ld
a1
,
PT_R5
(
sp
)
ld
a2
,
PT_R6
(
sp
)
ld
a3
,
PT_R7
(
sp
)
ld
a4
,
PT_R8
(
sp
)
ld
a5
,
PT_R9
(
sp
)
jalr
s
0
jalr
t
0
li
t0
,
-
EMAXERRNO
-
1
#
error
?
sltu
t0
,
t0
,
v0
...
...
arch/mips/kernel/scall64-o32.S
View file @
04a7052c
...
...
@@ -124,6 +124,8 @@ trace_a_syscall:
li
a1
,
0
jal
do_syscall_trace
move
t0
,
s0
RESTORE_STATIC
ld
a0
,
PT_R4
(
sp
)
#
Restore
argument
registers
ld
a1
,
PT_R5
(
sp
)
ld
a2
,
PT_R6
(
sp
)
...
...
@@ -132,7 +134,7 @@ trace_a_syscall:
ld
a5
,
PT_R9
(
sp
)
ld
a6
,
PT_R10
(
sp
)
ld
a7
,
PT_R11
(
sp
)
#
For
indirect
syscalls
jalr
s
0
jalr
t
0
li
t0
,
-
EMAXERRNO
-
1
#
error
?
sltu
t0
,
t0
,
v0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment