fix bios call, return register values to caller

This commit is contained in:
pantonshire committed 2024-10-16 21:15:29 +01:00
1 parent 766a9c981c
commit 1880e89194
2 files changed
+22 -5

No files matched your search

+2 -2
View File
@@ -25,7 +25,7 @@ struct BiosIntr {
}
unsafe extern "C" {
unsafe fn bios_call(intr: u32, args: *mut BiosIntr);
unsafe fn _bios_call(intr: u32, args: *mut BiosIntr);
}
#[panic_handler]
@@ -54,7 +54,7 @@ pub extern "C" fn _start() -> ! {
};
unsafe {
bios_call(0x15, &raw mut args);
_bios_call(0x15, &raw mut args);
}
for (i, b) in STR.iter().copied().enumerate() {