diff options
Diffstat (limited to 'include/asm-ppc64/mmu.h')
-rw-r--r-- | include/asm-ppc64/mmu.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-ppc64/mmu.h b/include/asm-ppc64/mmu.h index 3d07ddd11e3b..70348a851313 100644 --- a/include/asm-ppc64/mmu.h +++ b/include/asm-ppc64/mmu.h | |||
@@ -200,6 +200,8 @@ extern long native_hpte_insert(unsigned long hpte_group, unsigned long va, | |||
200 | unsigned long prpn, | 200 | unsigned long prpn, |
201 | unsigned long vflags, unsigned long rflags); | 201 | unsigned long vflags, unsigned long rflags); |
202 | 202 | ||
203 | extern void stabs_alloc(void); | ||
204 | |||
203 | #endif /* __ASSEMBLY__ */ | 205 | #endif /* __ASSEMBLY__ */ |
204 | 206 | ||
205 | /* | 207 | /* |
@@ -336,6 +338,9 @@ static inline unsigned long get_vsid(unsigned long context, unsigned long ea) | |||
336 | | (ea >> SID_SHIFT)); | 338 | | (ea >> SID_SHIFT)); |
337 | } | 339 | } |
338 | 340 | ||
341 | #define VSID_SCRAMBLE(pvsid) (((pvsid) * VSID_MULTIPLIER) % VSID_MODULUS) | ||
342 | #define KERNEL_VSID(ea) VSID_SCRAMBLE(GET_ESID(ea)) | ||
343 | |||
339 | #endif /* __ASSEMBLY */ | 344 | #endif /* __ASSEMBLY */ |
340 | 345 | ||
341 | #endif /* _PPC64_MMU_H_ */ | 346 | #endif /* _PPC64_MMU_H_ */ |