]> asedeno.scripts.mit.edu Git - linux.git/commit
arm64/mm: Pass ttbr1 as a parameter to __enable_mmu()
authorJun Yao <yaojun8558363@gmail.com>
Mon, 24 Sep 2018 13:51:13 +0000 (14:51 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 25 Sep 2018 14:10:54 +0000 (15:10 +0100)
commit693d5639b44a8f3787444902d3600edc7e0105a2
tree267c8373804ad6d7e3ee3440f99164836e1262b7
parent2a6c7c367de82951c98a290a21156770f6f82c84
arm64/mm: Pass ttbr1 as a parameter to __enable_mmu()

In subsequent patches we'll use a transient pgd during the primary cpu's
boot process. To make this work while allowing secondary cpus to use the
swapper_pg_dir, we need to pass the relevant TTBR1 pgd as a parameter
to __enable_mmu().

This patch updates __enable__mmu() to take this as a parameter, updating
callsites to pass swapper_pg_dir for now.

There should be no functional change as a result of this patch.

Signed-off-by: Jun Yao <yaojun8558363@gmail.com>
Reviewed-by: James Morse <james.morse@arm.com>
[Mark: simplify assembly, clarify commit message]
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/head.S
arch/arm64/kernel/sleep.S