summaryrefslogtreecommitdiff
path: root/Source/Kernel/MemoryManager/PhysMem.ns.cpp
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2009-10-18 18:46:59 +0200
committerAlexis211 <alexis211@gmail.com>2009-10-18 18:46:59 +0200
commit776753bfa0c411f4b1a5680409104904961fcbeb (patch)
tree8e1d90bbc91a6925b86adbda9d91f6be50fd2388 /Source/Kernel/MemoryManager/PhysMem.ns.cpp
parentccf807eb4ff541bb849c4f370d34123cb23d7d76 (diff)
downloadMelon-776753bfa0c411f4b1a5680409104904961fcbeb.tar.gz
Melon-776753bfa0c411f4b1a5680409104904961fcbeb.zip
Mem::kalloc and Mem::kfree renamed to Mem::alloc and Mem::kfree
I renamed them so that they could have the same name in userland and in kernel space. We'll just know that if we're writing kernel code then we are allocating stuff in kernel memory, and if we're writing user code then we're allocating userland memory.
Diffstat (limited to 'Source/Kernel/MemoryManager/PhysMem.ns.cpp')
-rw-r--r--Source/Kernel/MemoryManager/PhysMem.ns.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Kernel/MemoryManager/PhysMem.ns.cpp b/Source/Kernel/MemoryManager/PhysMem.ns.cpp
index 25869f1..1b40e88 100644
--- a/Source/Kernel/MemoryManager/PhysMem.ns.cpp
+++ b/Source/Kernel/MemoryManager/PhysMem.ns.cpp
@@ -14,7 +14,7 @@ void initPaging(u32int mem_size) {
frames = new Bitset(nframes);
- kernelPageDirectory = new (Mem::kalloc(sizeof(PageDirectory), true)) PageDirectory();
+ kernelPageDirectory = new (Mem::alloc(sizeof(PageDirectory), true)) PageDirectory();
u32int i = 0xC0000000;
while (i < Mem::placementAddress) {