diff options
author | Scott Wood <scottwood@freescale.com> | 2015-10-07 05:48:09 +0200 |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2015-10-23 05:50:46 +0200 |
commit | d9e1831a420267a7ced708bb259d65b0a3c0344d (patch) | |
tree | 7df430b2f3deec91fd977f438ba4b207be8db46b /arch/powerpc/mm/mmu_decl.h | |
parent | powerpc/fsl_pci: Don't set up inbound windows in kdump crash kernel (diff) | |
download | linux-d9e1831a420267a7ced708bb259d65b0a3c0344d.tar.xz linux-d9e1831a420267a7ced708bb259d65b0a3c0344d.zip |
powerpc/85xx: Load all early TLB entries at once
Use an AS=1 trampoline TLB entry to allow all normal TLB1 entries to
be loaded at once. This avoids the need to keep the translation that
code is executing from in the same TLB entry in the final TLB
configuration as during early boot, which in turn is helpful for
relocatable kernels (e.g. kdump) where the kernel is not running from
what would be the first TLB entry.
On e6500, we limit map_mem_in_cams() to the primary hwthread of a
core (the boot cpu is always considered primary, as a kdump kernel
can be entered on any cpu). Each TLB only needs to be set up once,
and when we do, we don't want another thread to be running when we
create a temporary trampoline TLB1 entry.
Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'arch/powerpc/mm/mmu_decl.h')
-rw-r--r-- | arch/powerpc/mm/mmu_decl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/mm/mmu_decl.h b/arch/powerpc/mm/mmu_decl.h index 085b66b10891..27c3a2d3a4f1 100644 --- a/arch/powerpc/mm/mmu_decl.h +++ b/arch/powerpc/mm/mmu_decl.h @@ -152,6 +152,7 @@ extern int switch_to_as1(void); extern void restore_to_as0(int esel, int offset, void *dt_ptr, int bootcpu); #endif extern void loadcam_entry(unsigned int index); +extern void loadcam_multi(int first_idx, int num, int tmp_idx); struct tlbcam { u32 MAS0; |