]> Zhao Yanbai Git Server - minix.git/commitdiff
Use ARM_VM_SECTION_MASK to determine kernel base address 40/740/2
authorIgor Smolyar <xrevolver@gmail.com>
Fri, 16 Aug 2013 14:58:29 +0000 (17:58 +0300)
committerGerrit Code Review <gerrit@gerrit>
Mon, 19 Aug 2013 07:53:25 +0000 (09:53 +0200)
To map kernel we use 1M sections therefore we should use
ARM_VM_SECTION_MASK to determine base address.

Change-Id: I0b97fe459f2325d702aad9b7b1e8e066d9721b87

kernel/arch/earm/pg_utils.c

index e5ab5e8e646e7fec79c097ffd3d208809800a61e..b2f383e695e5b7b0c91f8d922f8c35e96d31f0c8 100644 (file)
@@ -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;