Changeset 364 for asp3_tinet_ecnl_rx/trunk/musl-1.1.18/arch/rx
- Timestamp:
- Feb 1, 2019, 9:57:09 PM (5 years ago)
- Location:
- asp3_tinet_ecnl_rx/trunk/musl-1.1.18/arch/rx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
asp3_tinet_ecnl_rx/trunk/musl-1.1.18/arch/rx/crt_arch.h
r342 r364 1 #ifndef __c2__ 1 2 #define main sta_ker 3 #else 4 #define main dummy_start 5 static int dummy_start(int argc, char **argv, char **envp) 6 { 7 return 0; 8 } 9 #endif -
asp3_tinet_ecnl_rx/trunk/musl-1.1.18/arch/rx/syscall_arch.h
r342 r364 87 87 long __syscall_ret(unsigned long), __syscall_nr(long nr, ...); 88 88 89 #define __syscall(n, ...) n(__VA_ARGS__) 90 #define __syscall_cp(n, ...) n(__VA_ARGS__) 91 #define syscall(n, ...) __syscall_ret(__syscall(n, __VA_ARGS__)) 92 #define syscall_cp(n, ...) __syscall_ret(__syscall_cp(n, __VA_ARGS__)) 89 #define __syscall0(n) n() 90 #define __syscall1(n,a) n(__scc(a)) 91 #define __syscall2(n,a,b) n(__scc(a),__scc(b)) 92 #define __syscall3(n,a,b,c) n(__scc(a),__scc(b),__scc(c)) 93 #define __syscall4(n,a,b,c,d) n(__scc(a),__scc(b),__scc(c),__scc(d)) 94 #define __syscall5(n,a,b,c,d,e) n(__scc(a),__scc(b),__scc(c),__scc(d),__scc(e)) 95 #define __syscall6(n,a,b,c,d,e,f) n(__scc(a),__scc(b),__scc(c),__scc(d),__scc(e),__scc(f)) 96 #define __syscall7(n,a,b,c,d,e,f,g) n(__scc(a),__scc(b),__scc(c),__scc(d),__scc(e),__scc(f),__scc(g)) 93 97 94 #define __syscall2(n, ...) n(__VA_ARGS__) 95 #define __syscall3(n, ...) n(__VA_ARGS__) 96 #define __syscall_cp2(n, ...) n(__VA_ARGS__) 97 #define __syscall_cp3(n, ...) n(__VA_ARGS__) 98 #define __syscall_cp0(n) n() 99 #define __syscall_cp1(n,a) n(__scc(a)) 100 #define __syscall_cp2(n,a,b) n(__scc(a),__scc(b)) 101 #define __syscall_cp3(n,a,b,c) n(__scc(a),__scc(b),__scc(c)) 102 #define __syscall_cp4(n,a,b,c,d) n(__scc(a),__scc(b),__scc(c),__scc(d)) 103 #define __syscall_cp5(n,a,b,c,d,e) n(__scc(a),__scc(b),__scc(c),__scc(d),__scc(e)) 104 #define __syscall_cp6(n,a,b,c,d,e,f) n(__scc(a),__scc(b),__scc(c),__scc(d),__scc(e),__scc(f)) 105 #define __syscall_cp7(n,a,b,c,d,e,f,g) n(__scc(a),__scc(b),__scc(c),__scc(d),__scc(e),__scc(f),__scc(g)) 106 107 #define __SYSCALL_NARGS_X(a,b,c,d,e,f,g,h,n,...) n 108 #define __SYSCALL_NARGS(...) __SYSCALL_NARGS_X(__VA_ARGS__,7,6,5,4,3,2,1,0,) 109 #define __SYSCALL_CONCAT_X(a,b) a##b 110 #define __SYSCALL_CONCAT(a,b) __SYSCALL_CONCAT_X(a,b) 111 #define __SYSCALL_DISP(b,...) __SYSCALL_CONCAT(b,__SYSCALL_NARGS(__VA_ARGS__))(__VA_ARGS__) 112 113 #define syscall(...) __syscall_ret(__SYSCALL_DISP(__syscall, __VA_ARGS__)) 114 #define syscall_cp(...) __syscall_ret(__SYSCALL_DISP(__syscall_cp, __VA_ARGS__)) 98 115 #endif
Note:
See TracChangeset
for help on using the changeset viewer.