mirror of
https://github.com/rdmsr/zag.git
synced 2026-10-29 14:38:21 +00:00
feat(pl/um): add SDL support
This commit is contained in:
@@ -59,6 +59,14 @@ pub const BootInfo = struct {
|
||||
entries: [256]Entry,
|
||||
};
|
||||
|
||||
pub const Framebuffer = struct {
|
||||
address: usize,
|
||||
width: u32,
|
||||
height: u32,
|
||||
pitch: u32,
|
||||
bpp: u8,
|
||||
};
|
||||
|
||||
pub const KernelAddress = struct { physical_base: usize, virtual_base: usize };
|
||||
|
||||
/// RSDP on ACPI machines
|
||||
@@ -70,6 +78,9 @@ pub const BootInfo = struct {
|
||||
/// Memory map
|
||||
memory_map: MemMap,
|
||||
|
||||
/// Framebuffer info, if available
|
||||
framebuffer: ?Framebuffer,
|
||||
|
||||
/// Kernel address
|
||||
kernel_address: KernelAddress,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user