Ignore:
Timestamp:
Jul 3, 2017, 5:21:06 PM (5 years ago)
Author:
max@…
Message:

start moving the APIC into the XCU driver

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/x86_64/drivers/soclib_xcu.c

    r129 r135  
    2727#include <chdev.h>
    2828
     29#include <hal_apic.h>
    2930#include <hal_internal.h>
    3031
    31 void soclib_xcu_init( chdev_t * icu,
    32                       lid_t     lid )
     32extern size_t ioapic_pins;
     33
     34void soclib_xcu_init(chdev_t *icu, lid_t lid)
    3335{
     36        size_t i;
     37
     38        /* disable all IRQs */
     39        for (i = 0; i < ioapic_pins; i++) {
     40                hal_ioapic_set_entry(i, IOENTRY_DISABLE);
     41        }
     42
    3443        x86_panic((char *)__func__);
    3544}
Note: See TracChangeset for help on using the changeset viewer.