aboutsummaryrefslogtreecommitdiff
path: root/src/sys/kernel.S
blob: 7c004de7375828dd9836267ff45cac289a70abac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
.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
.globl cmdidx
cmdidx:
	.word 0
.globl cmd
cmd:
	.space 2049