Andreas Kling
c94c15d45c
Everywhere: Replace AK::Singleton => Singleton
2021-08-08 00:03:45 +02:00
Andreas Kling
15d033b486
Kernel: Remove unused Process pointer in Memory::AddressSpace
...
Nobody was using the back-pointer to the process, so let's lose it.
2021-08-08 00:03:45 +02:00
Jean-Baptiste Boric
2c3b0baf76
Kernel: Move SpinLock.h into Locking/
2021-08-07 11:48:00 +02:00
Jean-Baptiste Boric
f7f794e74a
Kernel: Move Mutex into Locking/
2021-08-07 11:48:00 +02:00
Andreas Kling
f770b9d430
Kernel: Fix bad search-and-replace renames
...
Oops, I didn't mean to change every *Range* to *VirtualRange*!
2021-08-07 00:39:06 +02:00
Andreas Kling
2cd8b21974
Kernel: Add convenience values to the Memory::Region::Access enum
...
Instead of `Memory::Region::Access::Read | Memory::Region::AccessWrite`
you can now say `Memory::Region::Access::ReadWrite`.
2021-08-06 22:25:00 +02:00
Andreas Kling
47bdd7c3a0
Kernel: Rename a very long enum to ShouldDeallocateVirtualRange
...
ShouldDeallocateVirtualMemoryVirtualRange was a bit on the long side.
2021-08-06 21:45:05 +02:00
Andreas Kling
cdab5b2091
Kernel: Make identity mapping mechanism used during AP boot non-generic
...
When booting AP's, we identity map a region at 0x8000 while doing the
initial bringup sequence. This is the only thing in the kernel that
requires an identity mapping, yet we had a bunch of generic API's and a
dedicated VirtualRangeAllocator in every PageDirectory for this purpose.
This patch simplifies the situation by moving the identity mapping logic
to the AP boot code and removing the generic API's.
2021-08-06 21:35:56 +02:00
Andreas Kling
208147c77c
Kernel: Rename Process::space() => Process::address_space()
...
We commonly talk about "a process's address space" so let's nudge the
code towards matching how we talk about it. :^)
2021-08-06 14:05:58 +02:00
Andreas Kling
b7476d7a1b
Kernel: Rename Memory::Space => Memory::AddressSpace
2021-08-06 14:05:58 +02:00
Andreas Kling
cd5faf4e42
Kernel: Rename Range => VirtualRange
...
...and also RangeAllocator => VirtualRangeAllocator.
This clarifies that the ranges we're dealing with are *virtual* memory
ranges and not anything else.
2021-08-06 14:05:58 +02:00
Andreas Kling
93d98d4976
Kernel: Move Kernel/Memory/ code into Kernel::Memory namespace
2021-08-06 14:05:58 +02:00
Andreas Kling
a1d7ebf85a
Kernel: Rename Kernel/VM/ to Kernel/Memory/
...
This directory isn't just about virtual memory, it's about all kinds
of memory management.
2021-08-06 14:05:58 +02:00