From 200aeac2ba8c1a6f9e594ef2b589502ff9b54d64 Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Sun, 14 Sep 2025 19:03:26 +0200 Subject: [PATCH] Reduce visibility of a couple of idt things --- src/arch/x86_shared/idt.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/arch/x86_shared/idt.rs b/src/arch/x86_shared/idt.rs index 63e9485768..b6cd2e42fb 100644 --- a/src/arch/x86_shared/idt.rs +++ b/src/arch/x86_shared/idt.rs @@ -18,14 +18,14 @@ use crate::{cpu_set::LogicalCpuId, interrupt::*, ipi::IpiKind}; use spin::RwLock; -pub static INIT_IDT: SyncUnsafeCell<[IdtEntry; 32]> = SyncUnsafeCell::new([IdtEntry::new(); 32]); +static INIT_IDT: SyncUnsafeCell<[IdtEntry; 32]> = SyncUnsafeCell::new([IdtEntry::new(); 32]); -pub type IdtEntries = [IdtEntry; 256]; -pub type IdtReservations = [AtomicU32; 8]; +type IdtEntries = [IdtEntry; 256]; +type IdtReservations = [AtomicU32; 8]; #[repr(C)] pub struct Idt { - pub(crate) entries: IdtEntries, + entries: IdtEntries, reservations: IdtReservations, } impl Idt { @@ -36,7 +36,7 @@ impl Idt { } } #[inline] - pub fn set_reserved_mut(&mut self, index: u8, reserved: bool) { + fn set_reserved_mut(&mut self, index: u8, reserved: bool) { let byte_index = index / 32; let bit = index % 32;