00001 /* 00002 panaLiX, Adrian Panasiuk 2002-5,8 00003 http://panalix.sf.net/ 00004 ad.ek336@gmail.com 00005 00006 small osdev project 00007 provided under GPLv3 license. 00008 */ 00009 00010 #include "src/common/shared.hpp" 00011 #include "src/memory/memset.hpp" 00012 #include "src/memory/align.hpp" 00013 #include "src/memory/heap.hpp" 00014 #include "src/collection/collection.hpp" 00015 00016 namespace Collection { 00017 00018 struct Memory::Heap::heapbox collection_heapbox; 00019 00020 void init() { 00021 Memory::Heap::allocate_heapbox(&collection_heapbox, const_cast<char*>("collection")); 00022 } 00023 00024 namespace Mem { 00025 void *kmalloc(uint32 size, char *name) { 00026 return collection_heapbox.malloc(size,1,name,null); 00027 } 00028 00029 void kfree(void *ptr) { 00030 collection_heapbox.free(ptr); 00031 } 00032 } 00033 } 00034 00035