Last active
September 17, 2018 04:02
-
-
Save naoki9911/89783e2163a30f264e4a0eec50f660d5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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