OLD | NEW |
1 #include "syscall.h" | 1 #include "syscall.h" |
2 #include "libc.h" | 2 #include "libc.h" |
3 | 3 |
4 #ifdef SYS_cacheflush | 4 #ifdef SYS_cacheflush |
5 int _flush_cache(void *addr, int len, int op) | 5 int _flush_cache(void* addr, int len, int op) { |
6 { | 6 return syscall(SYS_cacheflush, addr, len, op); |
7 » return syscall(SYS_cacheflush, addr, len, op); | |
8 } | 7 } |
9 weak_alias(_flush_cache, cacheflush); | 8 weak_alias(_flush_cache, cacheflush); |
10 #endif | 9 #endif |
11 | 10 |
12 #ifdef SYS_cachectl | 11 #ifdef SYS_cachectl |
13 int __cachectl(void *addr, int len, int op) | 12 int __cachectl(void* addr, int len, int op) { |
14 { | 13 return syscall(SYS_cachectl, addr, len, op); |
15 » return syscall(SYS_cachectl, addr, len, op); | |
16 } | 14 } |
17 weak_alias(__cachectl, cachectl); | 15 weak_alias(__cachectl, cachectl); |
18 #endif | 16 #endif |
OLD | NEW |