File tree Expand file tree Collapse file tree 3 files changed +2
-11
lines changed
packages/std/packages/stub/include Expand file tree Collapse file tree 3 files changed +2
-11
lines changed Original file line number Diff line number Diff line change 1
1
#pragma once
2
- __attribute__(( naked ))
2
+
3
3
static long syscall1 (
4
4
long nr ,
5
5
long arg1
@@ -15,7 +15,6 @@ static long syscall1 (
15
15
);
16
16
}
17
17
18
- __attribute__((naked ))
19
18
static long syscall2 (
20
19
long nr ,
21
20
long arg1 ,
@@ -33,7 +32,6 @@ static long syscall2 (
33
32
);
34
33
}
35
34
36
- __attribute__((naked ))
37
35
static long syscall3 (
38
36
long nr ,
39
37
long arg1 ,
@@ -53,7 +51,6 @@ static long syscall3 (
53
51
);
54
52
}
55
53
56
- __attribute__((naked ))
57
54
static long syscall4 (
58
55
long nr ,
59
56
long arg1 ,
@@ -75,7 +72,6 @@ static long syscall4 (
75
72
);
76
73
}
77
74
78
- __attribute__((naked ))
79
75
static long syscall5 (
80
76
long nr ,
81
77
long arg1 ,
@@ -99,7 +95,6 @@ static long syscall5 (
99
95
);
100
96
}
101
97
102
- __attribute__((naked ))
103
98
static long syscall6 (
104
99
long nr ,
105
100
long arg1 ,
Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ static void* memset (
23
23
return dst ;
24
24
}
25
25
26
- __attribute__((naked ))
27
26
static void jump_to_entrypoint (void * stack , void * entrypoint ) {
28
27
asm volatile (
29
28
"mov sp, x0;" // set the stack pointer.
Original file line number Diff line number Diff line change @@ -88,10 +88,7 @@ static bool cstreq (String s, const char* cstr) {
88
88
return false;
89
89
}
90
90
}
91
- if (cstr [s .len ]) {
92
- return false;
93
- }
94
- return true;
91
+ return !cstr [s .len ];
95
92
}
96
93
97
94
static char * cstr (Arena * arena , String s ) {
You can’t perform that action at this time.
0 commit comments