We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39b5f16 commit b00bf34Copy full SHA for b00bf34
1 file changed
bios/stage-2/src/protected_mode.rs
@@ -74,7 +74,7 @@ pub fn enter_unreal_mode() {
74
75
// load GDT
76
unsafe {
77
- asm!("mov bx, 0x10", "mov ds, bx");
+ asm!("mov {0}, 0x10", "mov ds, {0}", out(reg) _);
78
}
79
80
// unset protected mode bit again
0 commit comments