From e71ca9d94c38d61096e587e1fa17a8b79cd89397 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Tue, 1 Feb 2022 18:25:51 -0700 Subject: Started syscalling --- src/sys/core.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/sys') diff --git a/src/sys/core.c b/src/sys/core.c index 1b71d3d..83cd563 100644 --- a/src/sys/core.c +++ b/src/sys/core.c @@ -1,4 +1,5 @@ #include +#include #include #include #include @@ -16,7 +17,6 @@ void testlocal(void); void testnew(void); -void __attribute__((naked)) usr_schedule(void); // Initialize IRQs void sysinit(void) @@ -80,10 +80,5 @@ void testlocal(void) void testnew(void) { add_thread(testlocal, 0, 0); - usr_schedule(); -} - -void __attribute__((naked)) usr_schedule(void) -{ - asm volatile ("svc #2"); + sys0(SYS_SCHED); } -- cgit v1.2.1