[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:
@@ -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 .
|
||||
|
||||
|
||||
Reference in New Issue
Block a user