Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42244
b: refs/heads/master
c: 56291e1
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Rothwell authored and Paul Mackerras committed Dec 4, 2006
1 parent bf43a11 commit ec7e365
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1d13581d00a041797c2c14adaccd306c91f87d46
refs/heads/master: 56291e19e37cf3bb8fc701ebf3aa8ffbf59f73ef
13 changes: 6 additions & 7 deletions trunk/arch/powerpc/mm/slb.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <asm/cputable.h>
#include <asm/cacheflush.h>
#include <asm/smp.h>
#include <asm/firmware.h>
#include <linux/compiler.h>

#ifdef DEBUG
Expand Down Expand Up @@ -193,6 +194,7 @@ static inline void patch_slb_encoding(unsigned int *insn_addr,
void slb_initialize(void)
{
unsigned long linear_llp, vmalloc_llp, io_llp;
unsigned long lflags, vflags;
static int slb_encoding_inited;
extern unsigned int *slb_miss_kernel_load_linear;
extern unsigned int *slb_miss_kernel_load_io;
Expand Down Expand Up @@ -225,11 +227,12 @@ void slb_initialize(void)
#endif
}

get_paca()->stab_rr = SLB_NUM_BOLTED;

/* On iSeries the bolted entries have already been set up by
* the hypervisor from the lparMap data in head.S */
#ifndef CONFIG_PPC_ISERIES
{
unsigned long lflags, vflags;
if (firmware_has_feature(FW_FEATURE_ISERIES))
return;

lflags = SLB_VSID_KERNEL | linear_llp;
vflags = SLB_VSID_KERNEL | vmalloc_llp;
Expand All @@ -247,8 +250,4 @@ void slb_initialize(void)
* elsewhere, we'll call _switch() which will bolt in the new
* one. */
asm volatile("isync":::"memory");
}
#endif /* CONFIG_PPC_ISERIES */

get_paca()->stab_rr = SLB_NUM_BOLTED;
}

0 comments on commit ec7e365

Please sign in to comment.