Change to setting up the initial stack in main

This commit is contained in:
pjht 2023-03-25 08:39:29 -05:00
parent c397a4bbf4
commit ab032e6324
Signed by: pjht
GPG Key ID: 7B5F6AFBEC7EE78E
2 changed files with 5 additions and 5 deletions

View File

@ -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:

View File

@ -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: