summaryrefslogblamecommitdiff
path: root/Source/Kernel/MemoryManager/Mem.ns.h
blob: b06ab79fa2fb3fe07937c35b5108cf92d8b62f9d (plain) (tree)
1
2
3
4
5
6
7
8
9
10





                    
                                  
                                       

                          

                                                   
 

                                                                                                                           
                                        




      
#ifdef DEF_COMMON

#ifndef DEF_MEM_NS_H
#define DEF_MEM_NS_H

namespace Mem {
	extern bool pagingEnabled;
	extern u32int placementAddress;

	void createHeap();
	void *alloc(u32int sz, bool align = false);
	void free(void *ptr);

	void* mkXchgSpace(u32int sz);	//This creates a space between userland and kernel land where data can be exchanged

	u32int kheapSize(), kheapFree();
}

#endif

#endif