aboutsummaryrefslogtreecommitdiff
path: root/src/user/syscall.c
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2021-10-26 01:55:33 -0600
committerJosh Rahm <joshuarahm@gmail.com>2021-10-26 01:55:33 -0600
commit2c94d5baaec9e65550df942cf976db48bd36d9b5 (patch)
tree6eb68deb9ab93d53539ef3cab283991140ddf0e6 /src/user/syscall.c
parent969c054e5b1aee7fb034667f09240216ea0c6abf (diff)
downloadstm32l4-2c94d5baaec9e65550df942cf976db48bd36d9b5.tar.gz
stm32l4-2c94d5baaec9e65550df942cf976db48bd36d9b5.tar.bz2
stm32l4-2c94d5baaec9e65550df942cf976db48bd36d9b5.zip
run clang-format.
Diffstat (limited to 'src/user/syscall.c')
-rw-r--r--src/user/syscall.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/user/syscall.c b/src/user/syscall.c
index 601c7a3..9ed75da 100644
--- a/src/user/syscall.c
+++ b/src/user/syscall.c
@@ -1,11 +1,11 @@
-#include "arch.h"
#include "user/syscall.h"
#include <stdint.h>
-void __attribute__ ((noinline)) do_syscall(
- volatile uint32_t id,
- volatile uint32_t arg)
+#include "arch.h"
+
+void __attribute__((noinline))
+do_syscall(volatile uint32_t id, volatile uint32_t arg)
{
#ifdef ARCH_STM32L4
asm volatile("svc #0x04");
@@ -13,8 +13,5 @@ void __attribute__ ((noinline)) do_syscall(
}
#define SYSCALL(id, fn, kernfn, argt) \
- void fn(argt arg) \
-{ \
- do_syscall(id, (uint32_t) arg); \
-}
+ void fn(argt arg) { do_syscall(id, (uint32_t)arg); }
#include "kern/syscall/syscall_tbl.inc"