Rev 656 | Rev 1099 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 656 | Rev 960 | ||
---|---|---|---|
Line 26... | Line 26... | ||
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
27 | */ |
28 | 28 | ||
29 | #include <libc.h> |
29 | #include <libc.h> |
30 | 30 | ||
31 | sysarg_t __syscall(const syscall_t id, const sysarg_t p1, const sysarg_t p2, const sysarg_t p3) |
31 | sysarg_t __syscall(const sysarg_t p1, const sysarg_t p2, const sysarg_t p3, |
- | 32 | const sysarg_t p4, const syscall_t id) |
|
32 | { |
33 | { |
33 | sysarg_t ret; |
34 | sysarg_t ret; |
34 | 35 | ||
35 | asm volatile ( |
36 | asm volatile ( |
36 | "int $0x30\n" |
37 | "int $0x30\n" |
37 | : "=a" (ret) |
38 | : "=a" (ret) |
38 | : "a" (id), |
39 | : "a" (p1), |
39 | "b" (p1), |
40 | "b" (p2), |
40 | "c" (p2), |
41 | "c" (p3), |
41 | "d" (p3) |
42 | "d" (p4), |
- | 43 | "S" (id) |
|
42 | ); |
44 | ); |
43 | 45 | ||
44 | return ret; |
46 | return ret; |
45 | } |
47 | } |