repo.or.cz
/
ps4-sdk.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix network naming
[ps4-sdk.git]
/
source
/
syscall.c
blob
ff3f5cbe78332e7c87ebd04e97dd4ca14c2a885f
1
#include
"syscall.h"
2
3
unsigned long
syscall
(
unsigned long
n
, ...) {
4
register
unsigned long
rax
asm
(
"rax"
);
5
register
unsigned long
rcx
asm
(
"rcx"
);
6
register
unsigned long
r10
asm
(
"r10"
);
7
8
r10
=
rcx
;
9
(
void
)
r10
;
10
rax
=
0
;
11
asm
(
"syscall"
);
12
return
rax
;
13
}