X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Farch%2Farmv7%2Finclude%2Fmm_virt.h;h=c1f10deba0b7335e87bb9c298613324d5ff920eb;hb=1baac59e0cea8985a60093e7415a1796bad138ae;hp=ef3de83f5bf50476a3e851a6f68a27cf78ec1a5c;hpb=f9c581641afeb556188e84428febd4011e61edc2;p=tpg%2Facess2.git diff --git a/Kernel/arch/armv7/include/mm_virt.h b/Kernel/arch/armv7/include/mm_virt.h index ef3de83f..c1f10deb 100644 --- a/Kernel/arch/armv7/include/mm_virt.h +++ b/Kernel/arch/armv7/include/mm_virt.h @@ -5,15 +5,19 @@ #ifndef _MM_VIRT_H_ #define _MM_VIRT_H_ -#define MM_KSTACK_SIZE 0x10000 +#include "options.h" + +#define USER_STACK_COMM 0x04000 // Pages to allocate up front +#define USER_STACK_SIZE 0x10000 // Stack space +#define USER_STACK_TOP 0x78000000 #define MM_USER_MIN 0x00001000 #define USER_LIB_MAX 0x70000000 -#define MM_KSTACK_BASE 0x70000000 -#define MM_KSTACK_END 0x7F000000 #define MM_PPD_HANDLES 0x7F800000 #define MM_TABLE1USER 0x7FC00000 // 2 GiB - 4 MiB -#define MM_TABLE0USER 0x7FEFE000 // 2 GiB - 2 MiB - 2 pages +#define MM_TABLE0USER 0x7FE00000 // 2 GiB - 2 MiB +#define MM_KSTACK_BASE 0x7FE00000 +#define MM_KSTACK_END 0x80000000 // Page Blocks are 12-bits wide (12 address bits used) // Hence, the table is 16KiB large (and must be so aligned)