1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 15:17:46 +00:00

Kernel: Remove problematic memory mapping methods

mmap() & mmap_region() methods are removed from ACPI & DMI components,
and we replace them with the new MM.allocate_kernel_region() helper.

Instead of doing a raw calculation for each VM address, from now on we
can use helper functions to do perform those calculations in a neat,
reusable and readable way.
This commit is contained in:
Liav A 2020-01-09 23:33:36 +02:00 committed by Andreas Kling
parent d2b41010c5
commit a9884fbbe5
10 changed files with 117 additions and 160 deletions

View file

@ -1325,9 +1325,6 @@ private:
SMBIOS::EntryPoint32bit* find_entry32bit_point();
SMBIOS::EntryPoint64bit* find_entry64bit_point();
void mmap(VirtualAddress vaddr, PhysicalAddress paddr, u32 length);
void mmap_region(Region& region, PhysicalAddress paddr);
SMBIOS::EntryPoint32bit* m_entry32bit_point;
SMBIOS::EntryPoint64bit* m_entry64bit_point;
SMBIOS::TableHeader* m_structure_table;