summaryrefslogtreecommitdiff
path: root/Source/Kernel/MemoryManager/Mem.ns.h
blob: b06ab79fa2fb3fe07937c35b5108cf92d8b62f9d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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