diff options
author | Thomas Preud'homme <robotux@celest.fr> | 2020-08-14 23:04:13 +0100 |
---|---|---|
committer | Thomas Preud'homme <robotux@celest.fr> | 2020-08-14 23:04:13 +0100 |
commit | afd09586d7ead4f146ad7a7a471be34196b3c6bc (patch) | |
tree | 87854be29fb4264b979b700fa45445f58faa4c26 /lib/armflush.c | |
parent | e2ccf3981d78dfeb390d22c74625b60310100abb (diff) |
New upstream version 0.9.27+git20200814.62c30a4a
Diffstat (limited to 'lib/armflush.c')
-rw-r--r-- | lib/armflush.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/armflush.c b/lib/armflush.c index eae3260..13955e1 100644 --- a/lib/armflush.c +++ b/lib/armflush.c @@ -7,12 +7,12 @@ #ifdef __TINYC__ /* syscall wrapper */ -unsigned syscall(unsigned syscall_nr, ...); +unsigned _tccsyscall(unsigned syscall_nr, ...); /* arm-tcc supports only fake asm currently */ __asm__( - ".global syscall\n" - "syscall:\n" + ".global _tccsyscall\n" + "_tccsyscall:\n" ".int 0xe92d4080\n" // push {r7, lr} ".int 0xe1a07000\n" // mov r7, r0 ".int 0xe1a00001\n" // mov r0, r1 @@ -31,6 +31,8 @@ __asm__( #define __ARM_NR_BASE (__NR_SYSCALL_BASE+0x0f0000) #define __ARM_NR_cacheflush (__ARM_NR_BASE+2) +#define syscall _tccsyscall + #else #define _GNU_SOURCE |