blob: 90e1c4f0ed2901402a8fbf74826e0c67c3f68b5f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
.section ".text.kernel"
.globl kernel_main
kernel_main:
///https://wiki.osdev.org/ARM_Paging
// Query the ID_MMFR0 register
mrc p15, 0, r2, c0, c1, 4
mov r0, #0
mov r1, #7
bl draw_hex32
bl sysinit
// Intentional undefined instruction
// .word 0xf7f0a000
cpsie aif, #0x10
svc #2 // Start scheduling!
1:
wfe
b 1b
|