aboutsummaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
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