Skip to content

Commit

Permalink
Fix compilation issue regarding 'naked_asm'
Browse files Browse the repository at this point in the history
  • Loading branch information
fruhland committed Oct 9, 2024
1 parent 6351782 commit 592abfd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions towboot/src/boot/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ use x86::{
};

use core::arch::asm;
use core::arch::naked_asm;
use core::ffi::c_void;
use core::ptr::NonNull;
use uefi::prelude::*;
Expand Down Expand Up @@ -588,7 +589,7 @@ impl EntryPoint {
#[naked]
extern "stdcall" fn jump_multiboot_common() {
unsafe {
asm!(
naked_asm!(
".code32",
// > ‘CR0’ Bit 31 (PG) must be cleared. Bit 0 (PE) must be set.
// > Other bits are all undefined.
Expand Down Expand Up @@ -618,8 +619,7 @@ impl EntryPoint {
// write the struct address to EBX
"mov ebx, esi",
// finally jump to the kernel
"jmp edi",
options(noreturn),
"jmp edi"
);
}
}
Expand Down

0 comments on commit 592abfd

Please sign in to comment.