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.
si
1 parent d633408 commit d8943ddCopy full SHA for d8943dd
bios/boot_sector/src/dap.rs
@@ -39,12 +39,12 @@ impl DiskAddressPacket {
39
unsafe {
40
asm!(
41
"push 0x7a", // error code `z`, passed to `fail` on error
42
- "mov {1:x}, si",
+ "mov {1:x}, si", // backup the `si` register, whose contents are required by LLVM
43
"mov si, {0:x}",
44
"int 0x13",
45
"jc fail",
46
"pop si", // remove error code again
47
- "mov si, {1:x}",
+ "mov si, {1:x}", // restore the `si` register to its prior state
48
in(reg) self_addr,
49
out(reg) _,
50
in("ax") 0x4200u16,
0 commit comments