summaryrefslogtreecommitdiff
path: root/Source/Kernel/MemoryManager/Mem.ns.h
blob: f6094cc0902f1c400157a2e2c849967f0fee8dc8 (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 size_t placementAddress;

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

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

	u32int kheapSize(), kheapFree();
}

#endif

#endif