We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ds
1 parent 48ced39 commit 2550267Copy full SHA for 2550267
bios/stage-3/src/main.rs
@@ -44,10 +44,10 @@ pub fn enter_long_mode_and_jump_to_stage_4(info: &mut BiosInfo) {
44
".code64",
45
46
// reload segment registers
47
- "mov bx, 0x10",
48
- "mov ds, bx",
49
- "mov es, bx",
50
- "mov ss, bx",
+ "mov {0}, 0x10",
+ "mov ds, {0}",
+ "mov es, {0}",
+ "mov ss, {0}",
51
52
// jump to 4th stage
53
"pop rdi",
@@ -56,6 +56,7 @@ pub fn enter_long_mode_and_jump_to_stage_4(info: &mut BiosInfo) {
56
// enter endless loop in case 4th stage returns
57
"2:",
58
"jmp 2b",
59
+ out(reg) _,
60
out("rdi") _,
61
);
62
}
0 commit comments