Skip to content

Commit

Permalink
x86_64: structures for I/O APIC and local APIC NMIs
Browse files Browse the repository at this point in the history
  • Loading branch information
jewelcodes committed Oct 8, 2024
1 parent aca51ba commit ba05122
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/platform/x86_64/include/platform/apic.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,20 @@ typedef struct IRQOverride {
struct IRQOverride *next;
} IRQOverride;

typedef struct BusNMI {
uint8_t source;
uint16_t flags;
uint32_t gsi;
struct BusNMI *next;
} BusNMI;

typedef struct LocalNMI {
uint8_t procID;
uint16_t flags;
uint8_t lint;
struct LocalNMI *next;
} LocalNMI;

int apicInit();
void lapicWrite(uint32_t, uint32_t);
uint32_t lapicRead(uint32_t);
Expand Down

0 comments on commit ba05122

Please sign in to comment.