aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-02-01 18:28:25 -0700
committerChristian Cunningham <cc@localhost>2022-02-01 18:28:25 -0700
commitf4435cb43b170c5125b002f67e250897fae69095 (patch)
tree296f443aa60cd94ad3f0fefa3b8416eb60d97b34 /include
parentc7169a96c46be8580613c67801ffb48e21231c8b (diff)
Added syscall with single argument
Diffstat (limited to 'include')
-rw-r--r--include/cpu.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/cpu.h b/include/cpu.h
index 52d016b..cccc12b 100644
--- a/include/cpu.h
+++ b/include/cpu.h
@@ -79,7 +79,8 @@ static inline void* getirqstack(void)
#define syscall_h_quote(text) #text
#define syscall_h_expand_and_quote(text) syscall_h_quote(text)
-#define sys0(sys_n) asm volatile("svc #" syscall_h_expand_and_quote(sys_n) ::: "r0", "r1", "r2", "r3", "lr");
+#define sys0(sys_n) asm volatile("svc #" syscall_h_expand_and_quote(sys_n) ::: "r0", "r1", "r2", "r3");
+#define sys1(sys_n,arg0) asm volatile("svc #" syscall_h_expand_and_quote(sys_n) ::[r0]"r"(arg0): "r0", "r1", "r2", "r3");
#define SYS_SCHED 2