1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:37:34 +00:00

Kernel: Add convenient ways to map whole BIOS and EBDA into memory

This patch adds a MappedROM abstraction to the Kernel VM subsystem.
It's basically the read-only byte buffer equivalent of a TypedMapping.

We use this in the ACPI and MP table parsers to scan for interesting
stuff in low memory instead of doing a bunch of address arithmetic.
This commit is contained in:
Andreas Kling 2020-05-22 12:55:23 +02:00
parent 6b5d2afd00
commit 84b7bc5e14
8 changed files with 169 additions and 47 deletions

View file

@ -206,7 +206,7 @@ protected:
Vector<u8> get_pci_bus_ids() const;
PhysicalAddress search_floating_pointer();
PhysicalAddress search_floating_pointer_in_ebda(u16 ebda_segment);
PhysicalAddress search_floating_pointer_in_ebda();
PhysicalAddress search_floating_pointer_in_bios_area();
PhysicalAddress m_floating_pointer;