Skip to content

Instantly share code, notes, and snippets.

@naoki9911
Last active September 17, 2018 04:02
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/89783e2163a30f264e4a0eec50f660d5 to your computer and use it in GitHub Desktop.
Save naoki9911/89783e2163a30f264e4a0eec50f660d5 to your computer and use it in GitHub Desktop.
struct rsdp {
CHAR8 sig[8];
UINT8 Checksum;
CHAR8 OEMID[6];
UINT8 Revision;
UINT32 RsdtAddress;
UINT32 Len;
UINT64 XsdtAddress;
UINT8 ExtChecksum;
UINT8 reserved[3];
};
struct sdt_header {
CHAR8 sig[4];
UINT32 len;
UINT8 rev;
UINT8 chksum;
CHAR8 OEMID[6];
CHAR8 tableid[8];
UINT32 OEMrev;
UINT32 creatorID;
UINT32 creatorRev;
};
struct __attribute__((packed)) xsdt {
struct sdt_header h;
UINT64 pointer_others[];
};
struct __attribute__((packed)) madt {
struct sdt_header h;
UINT32 lapic_addr;
UINT32 flags;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment