arm64: Calculate size for idmap_pg_dir at compile time
authorSuzuki K. Poulose <[email protected]>
Mon, 19 Oct 2015 13:19:30 +0000 (14:19 +0100)
committerCatalin Marinas <[email protected]>
Mon, 19 Oct 2015 16:53:26 +0000 (17:53 +0100)
commitc265af51c5f17ec5c0cf0d960133bd6fe5f39eb9
tree5eec359c8588aeab79324f7f52e5f0c3b6ae942d
parent686e783869d37935510b4d2c266948677be82665
arm64: Calculate size for idmap_pg_dir at compile time

Now that we can calculate the number of levels required for
mapping a va width, reserve exact number of pages that would
be required to cover the idmap. The idmap should be able to handle
the maximum physical address size supported.

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/include/asm/kernel-pgtable.h