1
0
mirror of https://github.com/SerenityOS/serenity synced 2024-07-01 11:39:22 +00:00

Kernel: Move {Virtual,Physical}Address classes to the Memory directory

This commit is contained in:
Liav A 2023-02-24 19:54:30 +02:00 committed by Jelle Raaijmakers
parent 64af4953c2
commit aaa1de7878
54 changed files with 61 additions and 59 deletions

View File

@ -10,7 +10,7 @@
#include <AK/Types.h>
#ifdef KERNEL
# include <Kernel/VirtualAddress.h>
# include <Kernel/Memory/VirtualAddress.h>
#endif
namespace AK {

View File

@ -10,7 +10,7 @@
#include <AK/Types.h>
#include <Kernel/Arch/RegisterState.h>
#include <Kernel/ExecutionMode.h>
#include <Kernel/VirtualAddress.h>
#include <Kernel/Memory/VirtualAddress.h>
namespace Kernel {

View File

@ -15,8 +15,8 @@
#include <AK/Types.h>
#include <Kernel/Forward.h>
#include <Kernel/Locking/Spinlock.h>
#include <Kernel/Memory/PhysicalAddress.h>
#include <Kernel/Memory/PhysicalPage.h>
#include <Kernel/PhysicalAddress.h>
namespace Kernel::Memory {

View File

@ -16,7 +16,7 @@
#include <Kernel/Arch/ProcessorSpecificDataID.h>
#include <Kernel/Arch/aarch64/CPUID.h>
#include <Kernel/Arch/aarch64/Registers.h>
#include <Kernel/VirtualAddress.h>
#include <Kernel/Memory/VirtualAddress.h>
namespace Kernel {

View File

@ -7,7 +7,7 @@
#pragma once
#include <AK/Types.h>
#include <Kernel/PhysicalAddress.h>
#include <Kernel/Memory/PhysicalAddress.h>
#include <Kernel/Sections.h>
namespace Kernel::RPi {

View File

@ -8,7 +8,7 @@
#pragma once
#include <AK/Types.h>
#include <Kernel/VirtualAddress.h>
#include <Kernel/Memory/VirtualAddress.h>
#include <AK/Platform.h>
VALIDATE_IS_X86()

View File

@ -15,8 +15,8 @@
#include <Kernel/Forward.h>
#include <Kernel/Locking/LockRank.h>
#include <Kernel/Locking/Spinlock.h>
#include <Kernel/Memory/PhysicalAddress.h>
#include <Kernel/Memory/PhysicalPage.h>
#include <Kernel/PhysicalAddress.h>
namespace Kernel::Memory {

View File

@ -9,8 +9,8 @@
#include <AK/OwnPtr.h>
#include <AK/Types.h>
#include <AK/Vector.h>
#include <Kernel/Memory/PhysicalAddress.h>
#include <Kernel/Memory/Region.h>
#include <Kernel/PhysicalAddress.h>
namespace Kernel {

View File

@ -7,9 +7,9 @@
#pragma once
#include <AK/StringView.h>
#include <Kernel/Memory/PhysicalAddress.h>
#include <Kernel/Memory/VirtualAddress.h>
#include <Kernel/Multiboot.h>
#include <Kernel/PhysicalAddress.h>
#include <Kernel/VirtualAddress.h>
namespace Kernel::Memory {
class PageTableEntry;

View File

@ -13,7 +13,7 @@
#include <AK/Vector.h>
#include <Kernel/Debug.h>
#include <Kernel/Locking/Spinlock.h>
#include <Kernel/PhysicalAddress.h>
#include <Kernel/Memory/PhysicalAddress.h>
namespace Kernel::PCI {

View File

@ -8,8 +8,8 @@
#include <Kernel/Devices/CharacterDevice.h>
#include <Kernel/Interrupts/IRQHandler.h>
#include <Kernel/Memory/PhysicalAddress.h>
#include <Kernel/Memory/PhysicalPage.h>
#include <Kernel/PhysicalAddress.h>
#include <Kernel/Tasks/WaitQueue.h>
namespace Kernel {

View File

@ -15,8 +15,8 @@
#include <Kernel/Devices/Device.h>
#include <Kernel/Library/LockWeakable.h>
#include <Kernel/Locking/Mutex.h>
#include <Kernel/Memory/PhysicalAddress.h>
#include <Kernel/Memory/PhysicalPage.h>
#include <Kernel/PhysicalAddress.h>
#include <Kernel/Security/Random.h>
namespace Kernel {

View File

@ -8,7 +8,7 @@
#include <AK/Types.h>
#include <Kernel/Devices/CharacterDevice.h>
#include <Kernel/PhysicalAddress.h>
#include <Kernel/Memory/PhysicalAddress.h>
namespace Kernel {

View File

@ -13,8 +13,8 @@
#include <Kernel/Interrupts/PCIIRQHandler.h>
#include <Kernel/Library/LockRefPtr.h>
#include <Kernel/Locking/Mutex.h>
#include <Kernel/Memory/PhysicalAddress.h>
#include <Kernel/Memory/PhysicalPage.h>
#include <Kernel/PhysicalAddress.h>
#include <Kernel/Sections.h>
#include <Kernel/Security/Random.h>
#include <Kernel/Tasks/WaitQueue.h>

View File

@ -19,9 +19,9 @@
#include <Kernel/Locking/Mutex.h>
#include <Kernel/Locking/Spinlock.h>
#include <Kernel/Memory/AnonymousVMObject.h>
#include <Kernel/Memory/PhysicalAddress.h>
#include <Kernel/Memory/PhysicalPage.h>
#include <Kernel/Memory/ScatterGatherList.h>
#include <Kernel/PhysicalAddress.h>
#include <Kernel/Sections.h>
#include <Kernel/Security/Random.h>
#include <Kernel/Tasks/WaitQueue.h>

View File

@ -26,8 +26,8 @@
#include <Kernel/Interrupts/IRQHandler.h>
#include <Kernel/Library/LockRefPtr.h>
#include <Kernel/Locking/Mutex.h>
#include <Kernel/Memory/PhysicalAddress.h>
#include <Kernel/Memory/PhysicalPage.h>
#include <Kernel/PhysicalAddress.h>
#include <Kernel/Security/Random.h>
#include <Kernel/Tasks/WaitQueue.h>

View File

@ -12,8 +12,8 @@
#include <Kernel/Devices/Device.h>
#include <Kernel/Library/LockRefPtr.h>
#include <Kernel/Locking/Mutex.h>
#include <Kernel/Memory/PhysicalAddress.h>
#include <Kernel/Memory/PhysicalPage.h>
#include <Kernel/PhysicalAddress.h>
#include <Kernel/Security/Random.h>
#include <Kernel/Tasks/WaitQueue.h>

View File

@ -13,9 +13,9 @@
#include <Kernel/Forward.h>
#include <Kernel/Library/LockWeakable.h>
#include <Kernel/Library/NonnullLockRefPtr.h>
#include <Kernel/Memory/VirtualAddress.h>
#include <Kernel/UnixTypes.h>
#include <Kernel/UserOrKernelBuffer.h>
#include <Kernel/VirtualAddress.h>
namespace Kernel {

View File

@ -15,7 +15,7 @@
#include <Kernel/FileSystem/InodeMetadata.h>
#include <Kernel/Forward.h>
#include <Kernel/KBuffer.h>
#include <Kernel/VirtualAddress.h>
#include <Kernel/Memory/VirtualAddress.h>
namespace Kernel {

View File

@ -11,7 +11,8 @@
#include <AK/Vector.h>
#include <Kernel/FileSystem/SysFS/Subsystems/Firmware/Directory.h>
#include <Kernel/KBuffer.h>
#include <Kernel/PhysicalAddress.h>
#include <Kernel/Library/LockRefPtr.h>
#include <Kernel/Memory/PhysicalAddress.h>
namespace Kernel {

View File

@ -10,7 +10,8 @@
#include <AK/Types.h>
#include <AK/Vector.h>
#include <Kernel/FileSystem/SysFS/Subsystems/Firmware/Directory.h>
#include <Kernel/PhysicalAddress.h>
#include <Kernel/Library/LockRefPtr.h>
#include <Kernel/Memory/PhysicalAddress.h>
namespace Kernel {

View File

@ -13,9 +13,9 @@
#include <Kernel/FileSystem/SysFS/Subsystems/Kernel/Directory.h>
#include <Kernel/KBuffer.h>
#include <Kernel/Memory/MappedROM.h>
#include <Kernel/Memory/PhysicalAddress.h>
#include <Kernel/Memory/Region.h>
#include <Kernel/PhysicalAddress.h>
#include <Kernel/VirtualAddress.h>
#include <Kernel/Memory/VirtualAddress.h>
namespace Kernel {

View File

@ -7,7 +7,7 @@
#pragma once
#include <AK/Types.h>
#include <Kernel/PhysicalAddress.h>
#include <Kernel/Memory/PhysicalAddress.h>
namespace Kernel::ACPI {

View File

@ -14,10 +14,10 @@
#include <Kernel/Firmware/ACPI/Initialize.h>
#include <Kernel/Interrupts/IRQHandler.h>
#include <Kernel/Library/LockRefPtr.h>
#include <Kernel/Memory/PhysicalAddress.h>
#include <Kernel/Memory/Region.h>
#include <Kernel/Memory/TypedMapping.h>
#include <Kernel/PhysicalAddress.h>
#include <Kernel/VirtualAddress.h>
#include <Kernel/Memory/VirtualAddress.h>
namespace Kernel::ACPI {

View File

@ -8,9 +8,9 @@
#pragma once
#include <Kernel/Memory/MappedROM.h>
#include <Kernel/Memory/PhysicalAddress.h>
#include <Kernel/Memory/Region.h>
#include <Kernel/PhysicalAddress.h>
#include <Kernel/VirtualAddress.h>
#include <Kernel/Memory/VirtualAddress.h>
namespace Kernel {

View File

@ -8,9 +8,9 @@
#include <AK/Types.h>
#include <AK/Vector.h>
#include <Kernel/Memory/PhysicalAddress.h>
#include <Kernel/Memory/Region.h>
#include <Kernel/PhysicalAddress.h>
#include <Kernel/VirtualAddress.h>
#include <Kernel/Memory/VirtualAddress.h>
namespace Kernel {
namespace MultiProcessor {

View File

@ -11,8 +11,8 @@
#include <Kernel/Graphics/Bochs/Definitions.h>
#include <Kernel/Graphics/Console/GenericFramebufferConsole.h>
#include <Kernel/Graphics/GenericGraphicsAdapter.h>
#include <Kernel/Memory/PhysicalAddress.h>
#include <Kernel/Memory/TypedMapping.h>
#include <Kernel/PhysicalAddress.h>
namespace Kernel {

View File

@ -8,7 +8,7 @@
#include <AK/Types.h>
#include <Kernel/Graphics/Console/Console.h>
#include <Kernel/PhysicalAddress.h>
#include <Kernel/Memory/PhysicalAddress.h>
namespace Kernel::Graphics {

View File

@ -10,7 +10,7 @@
#include <Kernel/Bus/PCI/Definitions.h>
#include <Kernel/Devices/BlockDevice.h>
#include <Kernel/Library/LockWeakable.h>
#include <Kernel/PhysicalAddress.h>
#include <Kernel/Memory/PhysicalAddress.h>
namespace Kernel {
class GenericGraphicsAdapter

View File

@ -6,7 +6,7 @@
#include <Kernel/Arch/Delay.h>
#include <Kernel/Graphics/Intel/Auxiliary/GMBusConnector.h>
#include <Kernel/PhysicalAddress.h>
#include <Kernel/Memory/PhysicalAddress.h>
namespace Kernel {

View File

@ -9,7 +9,7 @@
#include <Kernel/Graphics/Definitions.h>
#include <Kernel/Graphics/GraphicsManagement.h>
#include <Kernel/Graphics/Intel/NativeGraphicsAdapter.h>
#include <Kernel/PhysicalAddress.h>
#include <Kernel/Memory/PhysicalAddress.h>
namespace Kernel {

View File

@ -11,7 +11,7 @@
#include <Kernel/Graphics/Definitions.h>
#include <Kernel/Graphics/Intel/DisplayConnectorGroup.h>
#include <Kernel/Graphics/Intel/NativeDisplayConnector.h>
#include <Kernel/PhysicalAddress.h>
#include <Kernel/Memory/PhysicalAddress.h>
#include <LibEDID/EDID.h>
namespace Kernel {

View File

@ -5,7 +5,7 @@
*/
#include <Kernel/Graphics/Intel/Plane/DisplayPlane.h>
#include <Kernel/PhysicalAddress.h>
#include <Kernel/Memory/PhysicalAddress.h>
namespace Kernel {

View File

@ -5,7 +5,7 @@
*/
#include <Kernel/Graphics/Intel/Plane/G33DisplayPlane.h>
#include <Kernel/PhysicalAddress.h>
#include <Kernel/Memory/PhysicalAddress.h>
namespace Kernel {

View File

@ -6,7 +6,7 @@
#include <Kernel/Arch/Delay.h>
#include <Kernel/Graphics/Intel/Transcoder/AnalogDisplayTranscoder.h>
#include <Kernel/PhysicalAddress.h>
#include <Kernel/Memory/PhysicalAddress.h>
namespace Kernel {

View File

@ -6,7 +6,7 @@
#include <Kernel/Arch/Delay.h>
#include <Kernel/Graphics/Intel/Transcoder/DisplayTranscoder.h>
#include <Kernel/PhysicalAddress.h>
#include <Kernel/Memory/PhysicalAddress.h>
namespace Kernel {

View File

@ -12,8 +12,8 @@
#include <Kernel/Graphics/VMWare/Definitions.h>
#include <Kernel/IOWindow.h>
#include <Kernel/Locking/Spinlock.h>
#include <Kernel/Memory/PhysicalAddress.h>
#include <Kernel/Memory/TypedMapping.h>
#include <Kernel/PhysicalAddress.h>
namespace Kernel {

View File

@ -13,8 +13,8 @@
# include <Kernel/Arch/x86_64/IO.h>
#endif
#include <Kernel/Bus/PCI/Definitions.h>
#include <Kernel/Memory/PhysicalAddress.h>
#include <Kernel/Memory/TypedMapping.h>
#include <Kernel/PhysicalAddress.h>
namespace Kernel {

View File

@ -9,8 +9,8 @@
#include <Kernel/Memory/AllocationStrategy.h>
#include <Kernel/Memory/MemoryManager.h>
#include <Kernel/Memory/PageFaultResponse.h>
#include <Kernel/Memory/PhysicalAddress.h>
#include <Kernel/Memory/VMObject.h>
#include <Kernel/PhysicalAddress.h>
namespace Kernel::Memory {

View File

@ -7,8 +7,8 @@
#pragma once
#include <AK/OwnPtr.h>
#include <Kernel/Memory/PhysicalAddress.h>
#include <Kernel/Memory/Region.h>
#include <Kernel/PhysicalAddress.h>
namespace Kernel::Memory {

View File

@ -7,7 +7,7 @@
#pragma once
#include <AK/NonnullRefPtr.h>
#include <Kernel/PhysicalAddress.h>
#include <Kernel/Memory/PhysicalAddress.h>
namespace Kernel::Memory {

View File

@ -10,8 +10,8 @@
#include <AK/IntrusiveRedBlackTree.h>
#include <Kernel/Locking/Spinlock.h>
#include <Kernel/Memory/Region.h>
#include <Kernel/Memory/VirtualAddress.h>
#include <Kernel/Memory/VirtualRange.h>
#include <Kernel/VirtualAddress.h>
namespace Kernel::Memory {

View File

@ -6,7 +6,7 @@
#pragma once
#include <Kernel/PhysicalAddress.h>
#include <Kernel/Memory/PhysicalAddress.h>
#include <Kernel/UserOrKernelBuffer.h>
namespace Kernel::Memory {

View File

@ -11,7 +11,7 @@
#include <Kernel/Devices/BlockDevice.h>
#include <Kernel/Memory/AnonymousVMObject.h>
#include <Kernel/Memory/MemoryManager.h>
#include <Kernel/PhysicalAddress.h>
#include <Kernel/Memory/PhysicalAddress.h>
namespace Kernel::Memory {

View File

@ -11,7 +11,7 @@
#include <Kernel/Memory/AnonymousVMObject.h>
#include <Kernel/Memory/MemoryManager.h>
#include <Kernel/Memory/PageFaultResponse.h>
#include <Kernel/PhysicalAddress.h>
#include <Kernel/Memory/PhysicalAddress.h>
namespace Kernel::Memory {

View File

@ -8,7 +8,7 @@
#pragma once
#include <AK/Error.h>
#include <Kernel/VirtualAddress.h>
#include <Kernel/Memory/VirtualAddress.h>
namespace Kernel::Memory {

View File

@ -7,9 +7,9 @@
#pragma once
#ifdef __cplusplus
# include <Kernel/Memory/PhysicalAddress.h>
# include <Kernel/Memory/VirtualAddress.h>
# include <Kernel/Multiboot.h>
# include <Kernel/PhysicalAddress.h>
# include <Kernel/VirtualAddress.h>
#endif
#define MAX_KERNEL_SIZE 0x4000000

View File

@ -7,10 +7,10 @@
*/
#include <AK/Types.h>
#include <Kernel/Memory/PhysicalAddress.h>
#include <Kernel/Memory/VirtualAddress.h>
#include <Kernel/Multiboot.h>
#include <Kernel/PhysicalAddress.h>
#include <Kernel/Prekernel/Prekernel.h>
#include <Kernel/VirtualAddress.h>
#include <LibC/elf.h>
#include <LibELF/Relocation.h>

View File

@ -7,7 +7,7 @@
#pragma once
#include <AK/Types.h>
#include <Kernel/VirtualAddress.h>
#include <Kernel/Memory/VirtualAddress.h>
namespace UserspaceEmulator {

View File

@ -12,7 +12,7 @@
#include <AK/Concepts.h>
#include <AK/DeprecatedString.h>
#include <AK/RefCounted.h>
#include <Kernel/VirtualAddress.h>
#include <Kernel/Memory/VirtualAddress.h>
#include <LibC/elf.h>
#include <LibC/link.h>

View File

@ -9,7 +9,7 @@
#include <AK/Concepts.h>
#include <AK/Vector.h>
#include <Kernel/VirtualAddress.h>
#include <Kernel/Memory/VirtualAddress.h>
#include <LibC/elf.h>
#ifndef KERNEL

View File

@ -6,7 +6,7 @@
#pragma once
#include <Kernel/VirtualAddress.h>
#include <Kernel/Memory/VirtualAddress.h>
namespace ELF {