aboutsummaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2021-12-04 17:36:28 -0700
committerChristian Cunningham <cc@localhost>2021-12-04 17:36:28 -0700
commitbaac108e68f8861b01b118e97b149caa26a22e58 (patch)
tree6d85ec4ece60f5437b2581afd548c290734e343d /src/sys
parent691e06cd742840bb2513f62263d02169df8382b2 (diff)
Moved kernel source to sys/
Diffstat (limited to 'src/sys')
-rw-r--r--src/sys/kernel.S19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/sys/kernel.S b/src/sys/kernel.S
new file mode 100644
index 0000000..452de10
--- /dev/null
+++ b/src/sys/kernel.S
@@ -0,0 +1,19 @@
+.section ".text.kernel"
+
+.globl kernel_main
+kernel_main:
+ push {lr}
+ bl sysinit
+ bl enable_irq
+ bl enable_fiq
+ bl chk_irq_stat
+ bl postinit
+kernel_main.loop:
+ bl io_halt
+ b kernel_main.loop
+ pop {lr}
+
+.section ".data"
+.globl cntfrq
+cntfrq:
+ .word 0,0,0,0