From: Kees Jongenburger Date: Tue, 27 Aug 2013 12:32:23 +0000 (+0200) Subject: arm:use correct address mask for sections. X-Git-Tag: v3.3.0~789 X-Git-Url: http://zhaoyanbai.com/repos/?a=commitdiff_plain;h=184fe46a7935e1d7e83a68d4e961b20b993888e1;p=minix.git arm:use correct address mask for sections. --- diff --git a/servers/vm/arch/i386/pagetable.c b/servers/vm/arch/i386/pagetable.c index b9d9d2c9c..97200278a 100644 --- a/servers/vm/arch/i386/pagetable.c +++ b/servers/vm/arch/i386/pagetable.c @@ -1371,7 +1371,7 @@ int pt_mapkernel(pt_t *pt) pt->pt_dir[kern_pde] = addr | ARCH_VM_PDE_PRESENT | ARCH_VM_BIGPAGE | ARCH_VM_PTE_RW | global_bit; #elif defined(__arm__) - pt->pt_dir[kern_pde] = (addr & ARCH_VM_PDE_MASK) + pt->pt_dir[kern_pde] = (addr & ARM_VM_SECTION_MASK) | ARM_VM_SECTION | ARM_VM_SECTION_DOMAIN | ARM_VM_SECTION_WT