From a454174f3f267a76c89166e19199869255889b9d Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sun, 9 Jan 2022 19:26:56 +0000 Subject: [PATCH] Fis startup stack address calculations. --- boot/startup32.S | 2 +- boot/startup64.S | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/boot/startup32.S b/boot/startup32.S index 342af79..4908833 100644 --- a/boot/startup32.S +++ b/boot/startup32.S @@ -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. diff --git a/boot/startup64.S b/boot/startup64.S index 2a2efa7..c463bdf 100644 --- a/boot/startup64.S +++ b/boot/startup64.S @@ -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.