From: Igor Smolyar Date: Fri, 16 Aug 2013 14:58:29 +0000 (+0300) Subject: Use ARM_VM_SECTION_MASK to determine kernel base address X-Git-Tag: v3.3.0~838 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=3ef93645b93a5195ac759a40128f915fafb096cc;p=minix.git Use ARM_VM_SECTION_MASK to determine kernel base address To map kernel we use 1M sections therefore we should use ARM_VM_SECTION_MASK to determine base address. Change-Id: I0b97fe459f2325d702aad9b7b1e8e066d9721b87 --- diff --git a/kernel/arch/earm/pg_utils.c b/kernel/arch/earm/pg_utils.c index e5ab5e8e6..b2f383e69 100644 --- a/kernel/arch/earm/pg_utils.c +++ b/kernel/arch/earm/pg_utils.c @@ -173,7 +173,7 @@ int pg_mapkernel(void) assert(!(kern_phys_start % ARM_SECTION_SIZE)); pde = kern_vir_start / ARM_SECTION_SIZE; /* start pde */ while(mapped < kern_kernlen) { - pagedir[pde] = (kern_phys & ARM_VM_PDE_MASK) | ARM_VM_SECTION + pagedir[pde] = (kern_phys & ARM_VM_SECTION_MASK) | ARM_VM_SECTION | ARM_VM_SECTION_SUPER | ARM_VM_SECTION_DOMAIN | ARM_VM_SECTION_WT;