aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/cpu.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/cpu.h b/include/cpu.h
index 68638a5..52d016b 100644
--- a/include/cpu.h
+++ b/include/cpu.h
@@ -76,4 +76,11 @@ static inline void* getirqstack(void)
return sp;
}
+#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 SYS_SCHED 2
+
#endif