#[repr(C, packed(1))]struct Rsdp {
signature: InlineStr<8>,
checksum: u8,
oem_id: [u8; 6],
revision: u8,
rsdt_address: u32,
length: u32,
xsdt_address: u64,
ext_checksum: u8,
reserved: [u8; 3],
}
Expand description
The first structure found in ACPI. It just tells us where the RSDT is.
On BIOS systems, it is either found in the first 1KB of the Extended Bios Data Area, or between 0x000E0000 and 0x000FFFFF. The signature is always on a 16 byte boundary. On (U)EFI, it may not be located in these locations, and so an address should be found in the EFI configuration table instead.
The recommended way of locating the RSDP is to let the bootloader do it - Multiboot2 can pass a tag with the physical address of it. If this is not possible, a manual scan can be done.
If revision > 0
, (the hardware ACPI version is Version 2.0 or greater), the RSDP contains
some new fields. For ACPI Version 1.0, these fields are not valid and should not be accessed.
Fields§
§signature: InlineStr<8>
§checksum: u8
§oem_id: [u8; 6]
Name of the vendor
revision: u8
Version number
rsdt_address: u32
Address of the Root System Description Table
length: u32
§xsdt_address: u64
§ext_checksum: u8
§reserved: [u8; 3]
Implementations§
source§impl Rsdp
impl Rsdp
sourceunsafe fn search_for_on_bios() -> Result<&'static Self, ApicError>
unsafe fn search_for_on_bios() -> Result<&'static Self, ApicError>
This searches for a RSDP on BIOS systems.
sourcefn validate(&self) -> Result<(), ApicError>
fn validate(&self) -> Result<(), ApicError>
Checks that: 1) The signature is correct 2) The checksum is correct 3) For Version 2.0+, that the extension checksum is correct