We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc01310 commit 951729aCopy full SHA for 951729a
1 file changed
bios/stage-3/src/main.rs
@@ -34,8 +34,8 @@ pub fn enter_long_mode_and_jump_to_stage_4(info: &mut BiosInfo) {
34
let _ = writeln!(Writer, "Paging init done, jumping to stage 4");
35
unsafe {
36
asm!(
37
- // align the stack
38
- "and esp, 0xffffff00",
+ // Move the stack to new base address to make space for stage 4 and the kernel.
+ "mov esp, 0x00080000",
39
// push arguments (extended to 64 bit)
40
"push 0",
41
"push {info:e}",
0 commit comments