File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -37,11 +37,7 @@ pub fn enter_long_mode_and_jump_to_stage_4(info: &mut BiosInfo) {
37
37
// push arguments (extended to 64 bit)
38
38
"push 0" ,
39
39
"push {info:e}" ,
40
- // push entry point address (extended to 64 bit)
41
- "push 0" ,
42
- "push {entry_point:e}" ,
43
40
info = in( reg) info as * const _ as u32 ,
44
- entry_point = in( reg) info. stage_4. start as u32 ,
45
41
) ;
46
42
asm ! ( "ljmp $0x8, $2f" , "2:" , options( att_syntax) ) ;
47
43
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
54
"call rax" ,
60
55
61
56
// enter endless loop in case 4th stage returns
62
57
"2:" ,
63
58
"jmp 2b" ,
64
- out( "eax " ) _,
59
+ out( "rdi " ) _,
65
60
) ;
66
61
}
67
62
}
You can’t perform that action at this time.
0 commit comments