projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c265af5
)
arm64: Handle 4 level page table for swapper
author
Suzuki K. Poulose
<
[email protected]
>
Mon, 19 Oct 2015 13:19:31 +0000
(14:19 +0100)
committer
Catalin Marinas
<
[email protected]
>
Mon, 19 Oct 2015 16:53:41 +0000
(17:53 +0100)
At the moment, we only support maximum of 3-level page table for
swapper. With 48bit VA, 64K has only 3 levels and 4K uses section
mapping. Add support for 4-level page table for swapper, needed
by 16K pages.
Cc: Will Deacon <
[email protected]
>
Signed-off-by: Suzuki K. Poulose <
[email protected]
>
Reviewed-by: Ard Biesheuvel <
[email protected]
>
Tested-by: Ard Biesheuvel <
[email protected]
>
Acked-by: Mark Rutland <
[email protected]
>
Signed-off-by: Catalin Marinas <
[email protected]
>
arch/arm64/kernel/head.S
patch
|
blob
|
history
diff --git
a/arch/arm64/kernel/head.S
b/arch/arm64/kernel/head.S
index 149fce35fd9a306df5d7ea22f51e3f7fcf8ff800..7ace955b0f31e476c557812ba3b1a07e42777153 100644
(file)
--- a/
arch/arm64/kernel/head.S
+++ b/
arch/arm64/kernel/head.S
@@
-271,7
+271,10
@@
ENDPROC(preserve_boot_args)
*/
.macro create_pgd_entry, tbl, virt, tmp1, tmp2
create_table_entry \tbl, \virt, PGDIR_SHIFT, PTRS_PER_PGD, \tmp1, \tmp2
-#if SWAPPER_PGTABLE_LEVELS == 3
+#if SWAPPER_PGTABLE_LEVELS > 3
+ create_table_entry \tbl, \virt, PUD_SHIFT, PTRS_PER_PUD, \tmp1, \tmp2
+#endif
+#if SWAPPER_PGTABLE_LEVELS > 2
create_table_entry \tbl, \virt, SWAPPER_TABLE_SHIFT, PTRS_PER_PTE, \tmp1, \tmp2
#endif
.endm