We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1d01d6 commit 48ced39Copy full SHA for 48ced39
1 file changed
bios/stage-3/src/main.rs
@@ -37,11 +37,7 @@ pub fn enter_long_mode_and_jump_to_stage_4(info: &mut BiosInfo) {
37
// push arguments (extended to 64 bit)
38
"push 0",
39
"push {info:e}",
40
- // push entry point address (extended to 64 bit)
41
- "push 0",
42
- "push {entry_point:e}",
43
info = in(reg) info as *const _ as u32,
44
- entry_point = in(reg) info.stage_4.start as u32,
45
);
46
asm!("ljmp $0x8, $2f", "2:", options(att_syntax));
47
asm!(
@@ -54,14 +50,13 @@ pub fn enter_long_mode_and_jump_to_stage_4(info: &mut BiosInfo) {
54
50
"mov ss, bx",
55
51
56
52
// jump to 4th stage
57
- "pop rax",
58
53
"pop rdi",
59
"call rax",
60
61
// enter endless loop in case 4th stage returns
62
"2:",
63
"jmp 2b",
64
- out("eax") _,
+ out("rdi") _,
65
66
}
67
0 commit comments