aienux
Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.
Brought by drakestapleton
aienux / vendor / uefi-raw / src / table / header.rs
| 1 | // SPDX-License-Identifier: MIT OR Apache-2.0 |
| 2 | |
| 3 | use super::Revision; |
| 4 | |
| 5 | /// The common header that all UEFI tables begin with. |
| 6 | #[derive(Clone, Copy, Debug, Default, PartialEq, Eq, PartialOrd, Ord, Hash)] |
| 7 | #[repr(C)] |
| 8 | pub struct Header { |
| 9 | /// Unique identifier for this table. |
| 10 | pub signature: u64, |
| 11 | /// Revision of the spec this table conforms to. |
| 12 | pub revision: Revision, |
| 13 | /// The size in bytes of the entire table. |
| 14 | pub size: u32, |
| 15 | /// 32-bit CRC of the entire table using polynomial `0x04c11db7`, |
| 16 | /// calculated with this field set to 0. |
| 17 | pub crc: u32, |
| 18 | /// Reserved field that must be set to 0. |
| 19 | pub reserved: u32, |
| 20 | } |