aboutsummaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys')
-rw-r--r--src/sys/kernel.S31
1 files changed, 1 insertions, 30 deletions
diff --git a/src/sys/kernel.S b/src/sys/kernel.S
index 6452a4f..cfd396f 100644
--- a/src/sys/kernel.S
+++ b/src/sys/kernel.S
@@ -9,39 +9,10 @@ kernel_main:
mrc p15, 0, r0, c0, c1, 4
bl sysinit
- assign_ctask testf, 2
- assign_ctask testf, 1
- assign_ctask testf, 2
- assign_ctask testf, 3
- assign_ctask testf, 1
// Intentional undefined instruction
- // .word 0xf7f0a000
+ //.word 0xf7f0a000
cpsie aif, #0x10
svc #2 // Start scheduling!
1:
wfe
b 1b
-
-testf:
- push {lr}
- cmp r0, #2
- blo 1f
- beq 2f
- bgt 3f
-1:
- ldr r0, =t1
- bl uart_print
- pop {pc}
-2:
- ldr r0, =t2
- bl uart_print
- pop {pc}
-3:
- ldr r0, =t3
- bl uart_print
- pop {pc}
-
-.section .data
-t1: .asciz "C1\n"
-t2: .asciz "C2\n"
-t3: .asciz "C3\n"