1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:07:43 +00:00

Kernel: Move all code into the Kernel namespace

This commit is contained in:
Andreas Kling 2020-02-16 01:27:42 +01:00
parent d42f0f4661
commit a356e48150
201 changed files with 907 additions and 111 deletions

View file

@ -44,6 +44,8 @@
#include <Kernel/VM/Region.h>
#include <Kernel/VM/VMObject.h>
namespace Kernel {
#define PAGE_ROUND_UP(x) ((((u32)(x)) + PAGE_SIZE - 1) & (~(PAGE_SIZE - 1)))
template<typename T>
@ -71,7 +73,7 @@ inline u32 virtual_to_low_physical(u32 physical)
class KBuffer;
class SynthFSInode;
#define MM MemoryManager::the()
#define MM Kernel::MemoryManager::the()
class MemoryManager {
AK_MAKE_ETERNAL
@ -138,8 +140,10 @@ private:
MemoryManager();
~MemoryManager();
enum class AccessSpace { Kernel, User };
enum class AccessType { Read, Write };
enum class AccessSpace { Kernel,
User };
enum class AccessType { Read,
Write };
template<AccessSpace, AccessType>
bool validate_range(const Process&, VirtualAddress, size_t) const;
@ -232,3 +236,5 @@ inline bool PhysicalPage::is_shared_zero_page() const
{
return this == &MM.shared_zero_page();
}
}