Changeset 1df1905 in mainline for uspace/lib/c/arch/sparc32/include/libarch/syscall.h
- Timestamp:
- 2013-12-28T17:30:44Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 41b735f3
- Parents:
- c1023bcb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/sparc32/include/libarch/syscall.h
rc1023bcb r1df1905 39 39 #include <abi/syscall.h> 40 40 41 #define __syscall0 42 #define __syscall1 43 #define __syscall2 44 #define __syscall3 45 #define __syscall4 46 #define __syscall5 47 #define __syscall6 41 #define __syscall0 __syscall 42 #define __syscall1 __syscall 43 #define __syscall2 __syscall 44 #define __syscall3 __syscall 45 #define __syscall4 __syscall 46 #define __syscall5 __syscall 47 #define __syscall6 __syscall 48 48 49 static inline sysarg_t 50 __syscall(const sysarg_t p1, const sysarg_t p2, const sysarg_t p3,51 const sys arg_t p4, const sysarg_t p5, const sysarg_t p6, const syscall_t id)49 static inline sysarg_t __syscall(const sysarg_t p1, const sysarg_t p2, 50 const sysarg_t p3, const sysarg_t p4, const sysarg_t p5, const sysarg_t p6, 51 const syscall_t id) 52 52 { 53 53 register uint32_t a1 asm("o0") = p1; … … 57 57 register uint32_t a5 asm("o4") = p5; 58 58 register uint32_t a6 asm("o5") = p6; 59 59 60 60 asm volatile ( 61 61 "ta %7\n" 62 62 : "=r" (a1) 63 : "r" (a1), "r" (a2), "r" (a3), "r" (a4), "r" (a5), "r" (a6), 63 : "r" (a1), 64 "r" (a2), 65 "r" (a3), 66 "r" (a4), 67 "r" (a5), 68 "r" (a6), 64 69 "i" (id) 65 70 : "memory"
Note:
See TracChangeset
for help on using the changeset viewer.