aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-02-01 18:25:51 -0700
committerChristian Cunningham <cc@localhost>2022-02-01 18:25:51 -0700
commite71ca9d94c38d61096e587e1fa17a8b79cd89397 (patch)
tree866edbd5b74a2b02f6c8c599ce0175a81c4f2ecf /src
parent36f2d87ee57e841be5fe60f6430bdd167f9f03af (diff)
Started syscalling
Diffstat (limited to 'src')
-rw-r--r--src/sys/core.c9
1 files changed, 2 insertions, 7 deletions
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 <cpu/irq.h>
+#include <cpu.h>
#include <drivers/uart.h>
#include <globals.h>
#include <graphics/drawer.h>
@@ -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);
}