From f4435cb43b170c5125b002f67e250897fae69095 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Tue, 1 Feb 2022 18:28:25 -0700 Subject: Added syscall with single argument --- include/cpu.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') 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 -- cgit v1.2.1