2 /* (CC-BY-NC-SA) ROBIN KRENS - ROBIN @ ROBINKRENS.NL
5 * 2019/9/21 - ROBIN KRENS
9 * System calls for user functions
17 #include <lib/syscall.h>
20 //__attribute__ ((naked))
21 static int theos_syscall(int SYSCALL_N, int SYSCALL_N2) {
23 asm volatile ("svc 11");
28 //__attribute__ ((naked))
29 void theos_test(int dummy, int dummy2) {
31 theos_syscall(0xB1, 0xB2);
34 /* void theos_cputs(const char * str, size_t len) {
36 //syscall(#, 0, 0, 0 ..);
37 theos_syscall(22, 44);