Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/src/acpi/madt.c

    r63e27ef rb2fa1204  
    3535 */
    3636
    37 #include <assert.h>
    3837#include <typedefs.h>
    3938#include <genarch/acpi/acpi.h>
     
    4241#include <arch/smp/smp.h>
    4342#include <panic.h>
     43#include <debug.h>
    4444#include <config.h>
    4545#include <log.h>
    4646#include <mm/slab.h>
    47 #include <gsort.h>
     47#include <memstr.h>
     48#include <sort.h>
    4849
    4950struct acpi_madt *acpi_madt = NULL;
     
    8283static uint8_t madt_cpu_apic_id(size_t i)
    8384{
    84         assert(i < madt_l_apic_entry_cnt);
     85        ASSERT(i < madt_l_apic_entry_cnt);
    8586       
    8687        return ((struct madt_l_apic *)
     
    9091static bool madt_cpu_enabled(size_t i)
    9192{
    92         assert(i < madt_l_apic_entry_cnt);
     93        ASSERT(i < madt_l_apic_entry_cnt);
    9394       
    9495        /*
     
    106107static bool madt_cpu_bootstrap(size_t i)
    107108{
    108         assert(i < madt_l_apic_entry_cnt);
     109        ASSERT(i < madt_l_apic_entry_cnt);
    109110       
    110111        return ((struct madt_l_apic *)
     
    176177    size_t i)
    177178{
    178         assert(override->source < sizeof(isa_irq_map) / sizeof(int));
     179        ASSERT(override->source < sizeof(isa_irq_map) / sizeof(int));
    179180       
    180181        isa_irq_map[override->source] = override->global_int;
Note: See TracChangeset for help on using the changeset viewer.