Skip to content

Commit 19966b9

Browse files
committed
cleanup
1 parent da3d2ff commit 19966b9

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

packages/std/packages/stub/include/aarch64/syscall.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#pragma once
2-
__attribute__((naked))
2+
33
static long syscall1 (
44
long nr,
55
long arg1
@@ -15,7 +15,6 @@ static long syscall1 (
1515
);
1616
}
1717

18-
__attribute__((naked))
1918
static long syscall2 (
2019
long nr,
2120
long arg1,
@@ -33,7 +32,6 @@ static long syscall2 (
3332
);
3433
}
3534

36-
__attribute__((naked))
3735
static long syscall3 (
3836
long nr,
3937
long arg1,
@@ -53,7 +51,6 @@ static long syscall3 (
5351
);
5452
}
5553

56-
__attribute__((naked))
5754
static long syscall4 (
5855
long nr,
5956
long arg1,
@@ -75,7 +72,6 @@ static long syscall4 (
7572
);
7673
}
7774

78-
__attribute__((naked))
7975
static long syscall5 (
8076
long nr,
8177
long arg1,
@@ -99,7 +95,6 @@ static long syscall5 (
9995
);
10096
}
10197

102-
__attribute__((naked))
10398
static long syscall6 (
10499
long nr,
105100
long arg1,

packages/std/packages/stub/include/aarch64/util.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ static void* memset (
2323
return dst;
2424
}
2525

26-
__attribute__((naked))
2726
static void jump_to_entrypoint (void* stack, void* entrypoint) {
2827
asm volatile (
2928
"mov sp, x0;" // set the stack pointer.

packages/std/packages/stub/include/util.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,7 @@ static bool cstreq (String s, const char* cstr) {
8888
return false;
8989
}
9090
}
91-
if (cstr[s.len]) {
92-
return false;
93-
}
94-
return true;
91+
return !cstr[s.len];
9592
}
9693

9794
static char* cstr (Arena *arena, String s) {

0 commit comments

Comments
 (0)