diff options
author | Liav A <liavalb@gmail.com> | 2022-07-14 15:14:08 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-07-14 23:27:46 +0200 |
commit | 1c499e75bd25d66393aa2118144d7f0afccc2eed (patch) | |
tree | c57925ac5109ed9e970d9e6e76fe5e46753ac32d /Kernel/Storage/ATA | |
parent | ed9b2a85edfb042bba1297c77be9d7b52422b0ce (diff) | |
download | serenity-1c499e75bd25d66393aa2118144d7f0afccc2eed.zip |
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.
Diffstat (limited to 'Kernel/Storage/ATA')
-rw-r--r-- | Kernel/Storage/ATA/AHCIPort.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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<NonnullRefPtr<AHCIPort>> 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<void> 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)); } |