From baac108e68f8861b01b118e97b149caa26a22e58 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Sat, 4 Dec 2021 17:36:28 -0700 Subject: Moved kernel source to sys/ --- src/sys/kernel.S | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/sys/kernel.S (limited to 'src/sys') 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 -- cgit v1.2.1