diff options
Diffstat (limited to 'arch/powerpc/kernel/process.c')
| -rw-r--r-- | arch/powerpc/kernel/process.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index 96843211cc5c..de69fb37c731 100644 --- a/arch/powerpc/kernel/process.c +++ b/arch/powerpc/kernel/process.c | |||
| @@ -46,10 +46,10 @@ | |||
| 46 | #include <asm/processor.h> | 46 | #include <asm/processor.h> |
| 47 | #include <asm/mmu.h> | 47 | #include <asm/mmu.h> |
| 48 | #include <asm/prom.h> | 48 | #include <asm/prom.h> |
| 49 | #include <asm/machdep.h> | ||
| 49 | #ifdef CONFIG_PPC64 | 50 | #ifdef CONFIG_PPC64 |
| 50 | #include <asm/firmware.h> | 51 | #include <asm/firmware.h> |
| 51 | #include <asm/time.h> | 52 | #include <asm/time.h> |
| 52 | #include <asm/machdep.h> | ||
| 53 | #endif | 53 | #endif |
| 54 | 54 | ||
| 55 | extern unsigned long _get_SP(void); | 55 | extern unsigned long _get_SP(void); |
| @@ -203,10 +203,8 @@ int dump_spe(struct pt_regs *regs, elf_vrregset_t *evrregs) | |||
| 203 | 203 | ||
| 204 | int set_dabr(unsigned long dabr) | 204 | int set_dabr(unsigned long dabr) |
| 205 | { | 205 | { |
| 206 | #ifdef CONFIG_PPC64 | ||
| 207 | if (ppc_md.set_dabr) | 206 | if (ppc_md.set_dabr) |
| 208 | return ppc_md.set_dabr(dabr); | 207 | return ppc_md.set_dabr(dabr); |
| 209 | #endif | ||
| 210 | 208 | ||
| 211 | mtspr(SPRN_DABR, dabr); | 209 | mtspr(SPRN_DABR, dabr); |
| 212 | return 0; | 210 | return 0; |
| @@ -554,12 +552,10 @@ int copy_thread(int nr, unsigned long clone_flags, unsigned long usp, | |||
| 554 | #ifdef CONFIG_PPC64 | 552 | #ifdef CONFIG_PPC64 |
| 555 | if (cpu_has_feature(CPU_FTR_SLB)) { | 553 | if (cpu_has_feature(CPU_FTR_SLB)) { |
| 556 | unsigned long sp_vsid = get_kernel_vsid(sp); | 554 | unsigned long sp_vsid = get_kernel_vsid(sp); |
| 555 | unsigned long llp = mmu_psize_defs[mmu_linear_psize].sllp; | ||
| 557 | 556 | ||
| 558 | sp_vsid <<= SLB_VSID_SHIFT; | 557 | sp_vsid <<= SLB_VSID_SHIFT; |
| 559 | sp_vsid |= SLB_VSID_KERNEL; | 558 | sp_vsid |= SLB_VSID_KERNEL | llp; |
| 560 | if (cpu_has_feature(CPU_FTR_16M_PAGE)) | ||
| 561 | sp_vsid |= SLB_VSID_L; | ||
| 562 | |||
| 563 | p->thread.ksp_vsid = sp_vsid; | 559 | p->thread.ksp_vsid = sp_vsid; |
| 564 | } | 560 | } |
| 565 | 561 | ||
