projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fix indention with spaces in powerpc asm
[oweals/musl.git]
/
src
/
internal
/
powerpc
/
syscall.s
1
.global __syscall
2
.type __syscall,@function
3
__syscall:
4
mr 0, 3 # Save the system call number
5
mr 3, 4 # Shift the arguments: arg1
6
mr 4, 5 # arg2
7
mr 5, 6 # arg3
8
mr 6, 7 # arg4
9
mr 7, 8 # arg5
10
mr 8, 9 # arg6
11
sc
12
bnslr+ # return if not summary overflow
13
#else error:
14
# return negated value.
15
neg 3, 3
16
blr
17
.end __syscall
18
.size __syscall, .-__syscall