aboutsummaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-01-31 19:05:50 -0700
committerChristian Cunningham <cc@localhost>2022-01-31 19:05:50 -0700
commita1f49718aee378fa075303c86106309091d56b80 (patch)
treedaa43fe9db527b69bc3b5e9cd967e6e5de5f5e29 /src/sys
parent09d5025fc34644a6e04380a61da15ba5d8e3f775 (diff)
Break exceptions off to own files
Diffstat (limited to 'src/sys')
-rw-r--r--src/sys/core.c6
-rw-r--r--src/sys/kernel.S2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/sys/core.c b/src/sys/core.c
index d84770d..39eaffd 100644
--- a/src/sys/core.c
+++ b/src/sys/core.c
@@ -61,9 +61,9 @@ void sysinit(void)
// Start Scheduler
init_scheduler();
- // Enable IRQ & FIQ
- enableirq();
- enablefiq();
+ //// // Enable IRQ & FIQ
+ //// enableirq();
+ //// enablefiq();
add_thread(testlocal, 0, 0);
add_thread(testlocal, 0, 1);
diff --git a/src/sys/kernel.S b/src/sys/kernel.S
index b76df62..93074b6 100644
--- a/src/sys/kernel.S
+++ b/src/sys/kernel.S
@@ -17,7 +17,7 @@ kernel_main:
// svc #1
// mrs r0, cpsr
// bl uart_hexn
- cps #0x10
+ cpsie aif, #0x10
svc #2 // Start scheduling!
1:
wfe