aboutsummaryrefslogtreecommitdiff
path: root/src/user/syscall.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/syscall.c')
-rw-r--r--src/user/syscall.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/user/syscall.c b/src/user/syscall.c
index 3aa0707..601c7a3 100644
--- a/src/user/syscall.c
+++ b/src/user/syscall.c
@@ -1,3 +1,4 @@
+#include "arch.h"
#include "user/syscall.h"
#include <stdint.h>
@@ -6,7 +7,9 @@ void __attribute__ ((noinline)) do_syscall(
volatile uint32_t id,
volatile uint32_t arg)
{
+#ifdef ARCH_STM32L4
asm volatile("svc #0x04");
+#endif
}
#define SYSCALL(id, fn, kernfn, argt) \