arm:use correct address mask for sections.

This commit is contained in:
Kees Jongenburger 2013-08-27 14:32:23 +02:00 committed by Gerrit Code Review
parent e4be0ceecf
commit 184fe46a79

View file

@ -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