Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@naoki9911
Last active September 17, 2018 04:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save naoki9911/27a35478dc6b0b2c99932edef99ba60b to your computer and use it in GitHub Desktop.
Save naoki9911/27a35478dc6b0b2c99932edef99ba60b to your computer and use it in GitHub Desktop.
struct uefi_madt {
uchar sig[4];
uint len;
uchar rev;
uchar chksum;
uchar oem_id[6];
uchar oem_table[8];
uint oem_rev;
uint creator_id;
uint creator_rev;
uint lapic_addr;
uint flags;
};
struct __attribute__((packed)) uefi_lapic {
uchar entry_type;
uchar record_len;
uchar processor_id;
uchar lapic_id;
uint flags;
};
struct __attribute__((packed)) uefi_ioapic {
uchar entry_type;
uchar record_len;
uchar ioapic_id;
uchar reserved;
uint ioapic_addr;
uint global_sys_intr_base;
};
struct __attribute__((packed)) uefi_iso {
uchar entry_type;
uchar record_len;
uchar bus_src;
uchar irq_src;
uint gsi;
uchar flags[2];
};
struct __attribute__((packed)) uefi_non_maskable_intr {
uchar entry_type;
uchar record_len;
uchar acpi_processor_id;
uchar flags[2];
uchar lint;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment