summaryrefslogtreecommitdiff
path: root/Source/Kernel/MemoryManager/Mem.ns.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Kernel/MemoryManager/Mem.ns.h')
-rw-r--r--Source/Kernel/MemoryManager/Mem.ns.h25
1 files changed, 2 insertions, 23 deletions
diff --git a/Source/Kernel/MemoryManager/Mem.ns.h b/Source/Kernel/MemoryManager/Mem.ns.h
index 8eb4b2e..15935c0 100644
--- a/Source/Kernel/MemoryManager/Mem.ns.h
+++ b/Source/Kernel/MemoryManager/Mem.ns.h
@@ -3,36 +3,15 @@
#ifndef DEF_MEM_NS_H
#define DEF_MEM_NS_H
-//Heap minimum size : 2M
-#define HEAP_MIN_SIZE 0x00200000
-//Heap magic number, for verifications
-#define HEAP_MAGIC 0xBEEF1337
-
namespace Mem {
extern bool pagingEnabled;
- extern u32int placementAddress, kheapFree;
-
- struct heap_header_t {
- u32int magic;
- bool is_hole;
- u32int size;
- };
-
- struct heap_footer_t {
- u32int magic;
- heap_header_t *header;
- };
-
- struct heap_index_t {
- heap_header_t **data;
- u32int size;
- };
+ extern u32int placementAddress;
void createHeap();
void *kalloc(u32int sz, bool align = false);
void kfree(void *ptr);
- u32int kheapSize();
+ u32int kheapSize(), kheapFree();
}
#endif