Skip to content

Commit 951729a

Browse files
committed
Enlarge the stack.
1 parent dc01310 commit 951729a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bios/stage-3/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ pub fn enter_long_mode_and_jump_to_stage_4(info: &mut BiosInfo) {
3434
let _ = writeln!(Writer, "Paging init done, jumping to stage 4");
3535
unsafe {
3636
asm!(
37-
// align the stack
38-
"and esp, 0xffffff00",
37+
// Move the stack to new base address to make space for stage 4 and the kernel.
38+
"mov esp, 0x00080000",
3939
// push arguments (extended to 64 bit)
4040
"push 0",
4141
"push {info:e}",

0 commit comments

Comments
 (0)