<commit_before>use crate::paging::ActivePageTable;

pub mod cpu;
pub mod ioapic;
pub mod local_apic;
pub mod pic;
pub mod pit;
pub mod rtc;
pub mod serial;
#[cfg(feature = "acpi")]
pub mod hpet;

pub unsafe fn init(active_table: &mut ActivePageTable) {
    pic::init();
    local_apic::init(active_table);
}
pub unsafe fn init_after_acpi(active_table: &mut ActivePageTable)  {
    // this will disable the IOAPIC if needed.
    ioapic::init(active_table);
}

#[cfg(feature = "acpi")]
unsafe fn init_hpet() -> bool {
    use crate::acpi::ACPI_TABLE;
    if let Some(ref mut hpet) = *ACPI_TABLE.hpet.write() {<commit_msg>Don't use the I/O APIC by default,<commit_after>use crate::paging::ActivePageTable;

pub mod cpu;
pub mod ioapic;
pub mod local_apic;
pub mod pic;
pub mod pit;
pub mod rtc;
pub mod serial;
#[cfg(feature = "acpi")]
pub mod hpet;

pub unsafe fn init(active_table: &mut ActivePageTable) {
    pic::init();
    local_apic::init(active_table);
}
pub unsafe fn init_after_acpi(active_table: &mut ActivePageTable)  {
    // this will disable the IOAPIC if needed.
    //ioapic::init(active_table);
}

#[cfg(feature = "acpi")]
unsafe fn init_hpet() -> bool {
    use crate::acpi::ACPI_TABLE;
    if let Some(ref mut hpet) = *ACPI_TABLE.hpet.write() {
{'fraction_non_alphanumeric': 0.1324345757335448, 'fraction_numerical': 0.0, 'mean_word_length': 4.584070796460177, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6486075', 'n_tokens_mistral': 464, 'n_tokens_neox': 464, 'n_words': 134}