[platform][m68k-virt] parse the BOOTINFO structure qemu uses to pass info

Pull out the memory size of the system and use it to initialize the
novm.
This commit is contained in:
Travis Geiselbrecht
2022-02-11 00:37:51 -08:00
parent 8ed7d0fc70
commit cc21c06eb6
4 changed files with 53 additions and 74 deletions

View File

@@ -11,15 +11,16 @@
FUNCTION(_start)
// clear bss
lea __bss_start,%a0
cmpal #_end,%a0
cmpal #__bss_end,%a0
beqs 1f
0:
clrb %a0@+
cmpal #_end,%a0
cmpal #__bss_end,%a0
bnes 0b
1:
movel #_default_stack_top,%sp
jsr lk_main
jmp .