diff options
author | Alexis211 <alexis211@gmail.com> | 2009-10-18 18:46:59 +0200 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2009-10-18 18:46:59 +0200 |
commit | 776753bfa0c411f4b1a5680409104904961fcbeb (patch) | |
tree | 8e1d90bbc91a6925b86adbda9d91f6be50fd2388 /Source/Library/Common/Bitset.class.cpp | |
parent | ccf807eb4ff541bb849c4f370d34123cb23d7d76 (diff) | |
download | Melon-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/Library/Common/Bitset.class.cpp')
-rw-r--r-- | Source/Library/Common/Bitset.class.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Library/Common/Bitset.class.cpp b/Source/Library/Common/Bitset.class.cpp index ec4e62c..a8d7ec8 100644 --- a/Source/Library/Common/Bitset.class.cpp +++ b/Source/Library/Common/Bitset.class.cpp @@ -4,7 +4,7 @@ Bitset::Bitset() { } Bitset::Bitset(u32int size) { - init(size, (u32int*)Mem::kalloc(INDEX_FROM_BIT(size))); + init(size, (u32int*)Mem::alloc(INDEX_FROM_BIT(size))); } Bitset::Bitset(u32int size, u32int *ptr) { @@ -12,7 +12,7 @@ Bitset::Bitset(u32int size, u32int *ptr) { } Bitset::~Bitset() { - Mem::kfree(m_data); + Mem::free(m_data); } void Bitset::init(u32int size, u32int *ptr) { |