aboutsummaryrefslogtreecommitdiff
path: root/src/core/memory_setup.h
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2015-05-29 18:00:17 -0700
committerYuri Kunde Schlesner <yuriks@yuriks.net>2015-05-29 18:00:17 -0700
commit8a04c65e20ba1f5c472c026b7a558e1d54324306 (patch)
treec11c0c6a472184f25479b0679748ee71653a2985 /src/core/memory_setup.h
parenta489a846563fc64f236c7ede69ce0eb34af3521a (diff)
parent88365a23e76fe3a4a64c9dc65aa8554e25a20af0 (diff)
Merge pull request #810 from yuriks/memmap
Kernel: Add VMManager to manage process address spaces
Diffstat (limited to 'src/core/memory_setup.h')
-rw-r--r--src/core/memory_setup.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/memory_setup.h b/src/core/memory_setup.h
index 46263495f..361bfc816 100644
--- a/src/core/memory_setup.h
+++ b/src/core/memory_setup.h
@@ -6,8 +6,13 @@
#include "common/common_types.h"
+#include "core/memory.h"
+
namespace Memory {
+const u32 PAGE_MASK = PAGE_SIZE - 1;
+const int PAGE_BITS = 12;
+
void InitMemoryMap();
/**
@@ -26,4 +31,6 @@ void MapMemoryRegion(VAddr base, u32 size, u8* target);
*/
void MapIoRegion(VAddr base, u32 size);
+void UnmapRegion(VAddr base, u32 size);
+
}