X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Farch%2Farm7%2Finclude%2Fmm_virt.h;fp=Kernel%2Farch%2Farm7%2Finclude%2Fmm_virt.h;h=ed6f3aff77c2dcdeaa026e3e8a16b24d02b7a5a0;hb=e4ccf568b07857a36382433ed73ea38874843b24;hp=0000000000000000000000000000000000000000;hpb=9c61cf12758c0977ee1dc5791cba638fd3437ba6;p=tpg%2Facess2.git diff --git a/Kernel/arch/arm7/include/mm_virt.h b/Kernel/arch/arm7/include/mm_virt.h new file mode 100644 index 00000000..ed6f3aff --- /dev/null +++ b/Kernel/arch/arm7/include/mm_virt.h @@ -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