History

arm: Don't override syscall implementation

Jookia committed 7 years ago

Commit f4202591 parent 96f1fb11 file · +5 −3Browse files

Showing the changes to lib (1 of 1 file). Show all

Unified · Split

lib/armflush.c+5−3
@@ -7,12 +7,12 @@ · 6 unmodified lines
7#ifdef __TINYC__7#ifdef __TINYC__
8 8
9/* syscall wrapper */9/* syscall wrapper */
10unsigned syscall(unsigned syscall_nr, ...);10unsigned _tccsyscall(unsigned syscall_nr, ...);
11 11
12/* arm-tcc supports only fake asm currently */12/* arm-tcc supports only fake asm currently */
13__asm__(13__asm__(
14 ".global syscall\n"14 ".global _tccsyscall\n"
15 "syscall:\n"15 "_tccsyscall:\n"
16 ".int 0xe92d4080\n" // push {r7, lr}16 ".int 0xe92d4080\n" // push {r7, lr}
17 ".int 0xe1a07000\n" // mov r7, r017 ".int 0xe1a07000\n" // mov r7, r0
18 ".int 0xe1a00001\n" // mov r0, r118 ".int 0xe1a00001\n" // mov r0, r1
@@ -31,6 +31,8 @@ __asm__( · 12 unmodified lines
31#define __ARM_NR_BASE (__NR_SYSCALL_BASE+0x0f0000)31#define __ARM_NR_BASE (__NR_SYSCALL_BASE+0x0f0000)
32#define __ARM_NR_cacheflush (__ARM_NR_BASE+2)32#define __ARM_NR_cacheflush (__ARM_NR_BASE+2)
33 33
34#define syscall _tccsyscall
35
34#else36#else
35 37
36#define _GNU_SOURCE38#define _GNU_SOURCE

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t