Skip to content

Commit

Permalink
fix(common-os): clippy::fn_to_numeric_cast
Browse files Browse the repository at this point in the history
  • Loading branch information
mkroening committed Dec 20, 2024
1 parent 95ef6d0 commit 437ddda
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/arch/x86_64/kernel/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,9 @@ pub fn configure() {
wrmsr(IA32_STAR, (0x1bu64 << 48) | (0x08u64 << 32));
wrmsr(
IA32_LSTAR,
crate::arch::x86_64::kernel::syscall::syscall_handler as u64,
(crate::arch::x86_64::kernel::syscall::syscall_handler as usize)
.try_into()
.unwrap(),
);
wrmsr(IA32_FMASK, 1 << 9); // clear IF flag during system call
}
Expand Down

0 comments on commit 437ddda

Please sign in to comment.