Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
CraftSpider committed Apr 19, 2021
1 parent 1c3fe41 commit 25205ed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/instructions/tables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ pub unsafe fn lidt(idt: &DescriptorTablePointer) {
/// Get the address of the current IDT.
#[inline]
pub fn sidt() -> DescriptorTablePointer {
let mut idt: DescriptorTablePointer = DescriptorTablePointer { limit: 0, base: VirtAddr::new(0) };
let mut idt: DescriptorTablePointer = DescriptorTablePointer {
limit: 0,
base: VirtAddr::new(0)
};
#[cfg(feature = "inline_asm")]
unsafe {
asm!("sidt [{}]", in(reg) &mut idt, options(nostack));
Expand Down

0 comments on commit 25205ed

Please sign in to comment.