ARM Build (doesn't compile yet)
[tpg/acess2.git] / Kernel / arch / arm7 / include / mm_virt.h
diff --git a/Kernel/arch/arm7/include/mm_virt.h b/Kernel/arch/arm7/include/mm_virt.h
new file mode 100644 (file)
index 0000000..ed6f3af
--- /dev/null
@@ -0,0 +1,19 @@
+/*
+ * Acess2
+ * ARM7 Virtual Memory Manager Header
+ */
+#ifndef _MM_VIRT_H_
+#define _MM_VIRT_H_
+
+#define KERNEL_BASE    0x80000000      // 2GiB
+
+// Page Blocks are 12-bits wide (12 address bits used)
+// Hence, the table is 16KiB large (and must be so aligned)
+// and each block addresses 1MiB of data
+
+#define MM_KHEAP_BASE  0x80800000      // 8MiB of kernel code
+#define MM_KHEAP_MAX   0xC0000000      // 1GiB of kernel heap
+
+#define MM_FRACTAL     0xFFE00000      // 2nd last block
+
+#endif

UCC git Repository :: git.ucc.asn.au