From 1c499e75bd25d66393aa2118144d7f0afccc2eed Mon Sep 17 00:00:00 2001 From: Liav A Date: Thu, 14 Jul 2022 15:14:08 +0300 Subject: Kernel+Userland: Remove supervisor pages concept There's no real value in separating physical pages to supervisor and user types, so let's remove the concept and just let everyone to use "user" physical pages which can be allocated from any PhysicalRegion we want to use. Later on, we will remove the "user" prefix as this prefix is not needed anymore. --- Kernel/Storage/ATA/AHCIPort.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Kernel/Storage/ATA') diff --git a/Kernel/Storage/ATA/AHCIPort.cpp b/Kernel/Storage/ATA/AHCIPort.cpp index f303cd6e7f..38d8f148b7 100644 --- a/Kernel/Storage/ATA/AHCIPort.cpp +++ b/Kernel/Storage/ATA/AHCIPort.cpp @@ -22,7 +22,7 @@ namespace Kernel { UNMAP_AFTER_INIT ErrorOr> AHCIPort::create(AHCIController const& controller, AHCI::HBADefinedCapabilities hba_capabilities, volatile AHCI::PortRegisters& registers, u32 port_index) { - auto identify_buffer_page = MUST(MM.allocate_supervisor_physical_page()); + auto identify_buffer_page = MUST(MM.allocate_user_physical_page()); auto port = TRY(adopt_nonnull_ref_or_enomem(new (nothrow) AHCIPort(controller, move(identify_buffer_page), hba_capabilities, registers, port_index))); TRY(port->allocate_resources_and_initialize_ports()); return port; @@ -35,14 +35,14 @@ ErrorOr AHCIPort::allocate_resources_and_initialize_ports() return {}; } - m_fis_receive_page = TRY(MM.allocate_supervisor_physical_page()); + m_fis_receive_page = TRY(MM.allocate_user_physical_page()); for (size_t index = 0; index < 1; index++) { - auto dma_page = TRY(MM.allocate_supervisor_physical_page()); + auto dma_page = TRY(MM.allocate_user_physical_page()); m_dma_buffers.append(move(dma_page)); } for (size_t index = 0; index < 1; index++) { - auto command_table_page = TRY(MM.allocate_supervisor_physical_page()); + auto command_table_page = TRY(MM.allocate_user_physical_page()); m_command_table_pages.append(move(command_table_page)); } -- cgit v1.2.3