Fis startup stack address calculations.

This commit is contained in:
Martin Whitaker 2022-01-09 19:26:56 +00:00
parent 4400ec6f17
commit a454174f3f
2 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ startup:
# Use a temporary stack until we pick the correct one. We can
# safely use the high address, even if we are loaded low.
movl $(HIGH_LOAD_ADDR + startup_stack_top - startup), %esp
movl $(HIGH_LOAD_ADDR + startup_stack_top - startup32), %esp
# Load the GOT pointer.

View File

@ -35,7 +35,7 @@ startup32:
# Use a temporary stack until we pick the correct one. We can
# safely use the high address, even if we are loaded low.
movl $(HIGH_LOAD_ADDR + startup_stack_top - startup), %esp
movl $(HIGH_LOAD_ADDR + startup_stack_top - startup32), %esp
# Get the load address.