Change to setting up the initial stack in main
This commit is contained in:
parent
c397a4bbf4
commit
ab032e6324
@ -1,6 +1,11 @@
|
||||
.global main
|
||||
main:
|
||||
move.l #inital_stack, a7 | Load the initial stack pointer
|
||||
move.b #'H', 0xFF0200
|
||||
move.b #'i', 0xFF0200
|
||||
move.b #0xA, 0xFF0200
|
||||
stop #0x2700
|
||||
|
||||
.bss
|
||||
.ds.b 16384
|
||||
inital_stack:
|
||||
|
@ -67,7 +67,6 @@ jmp in_higher:l | Jump to the higher half (THis function has been called with th
|
||||
in_higher:
|
||||
move.w #0, 0xff0000 | Disable the IO space at the top of the lower 16MB of memory
|
||||
move.l #0, (0x0, a0) | Disable the mapping in the lower quarter
|
||||
move.l #bootstrap_stack, a7 | Load the initial stack pointer
|
||||
jmp main | Jump to the kernel's main function
|
||||
|
||||
|
||||
@ -76,8 +75,4 @@ jmp main | Jump to the kernel's main function
|
||||
kernel_map:
|
||||
.balign 4096
|
||||
.ds.b 4096
|
||||
kernel_map_end:
|
||||
|
||||
.bss
|
||||
.ds.b 16384
|
||||
bootstrap_stack:
|
||||
|
Loading…
x
Reference in New Issue
Block a user