| .. | .. |
|---|
| 4 | 4 | |
|---|
| 5 | 5 | #ifdef CONFIG_PPC_BOOK3S_64 |
|---|
| 6 | 6 | #include <asm/book3s/64/slice.h> |
|---|
| 7 | | -#elif defined(CONFIG_PPC64) |
|---|
| 8 | | -#include <asm/nohash/64/slice.h> |
|---|
| 9 | | -#elif defined(CONFIG_PPC_MMU_NOHASH) |
|---|
| 10 | | -#include <asm/nohash/32/slice.h> |
|---|
| 11 | 7 | #endif |
|---|
| 8 | + |
|---|
| 9 | +#ifndef __ASSEMBLY__ |
|---|
| 10 | + |
|---|
| 11 | +struct mm_struct; |
|---|
| 12 | 12 | |
|---|
| 13 | 13 | #ifdef CONFIG_PPC_MM_SLICES |
|---|
| 14 | 14 | |
|---|
| .. | .. |
|---|
| 17 | 17 | #endif |
|---|
| 18 | 18 | #define HAVE_ARCH_UNMAPPED_AREA |
|---|
| 19 | 19 | #define HAVE_ARCH_UNMAPPED_AREA_TOPDOWN |
|---|
| 20 | | - |
|---|
| 21 | | -#ifndef __ASSEMBLY__ |
|---|
| 22 | | - |
|---|
| 23 | | -struct mm_struct; |
|---|
| 24 | 20 | |
|---|
| 25 | 21 | unsigned long slice_get_unmapped_area(unsigned long addr, unsigned long len, |
|---|
| 26 | 22 | unsigned long flags, unsigned int psize, |
|---|
| .. | .. |
|---|
| 32 | 28 | unsigned long len, unsigned int psize); |
|---|
| 33 | 29 | |
|---|
| 34 | 30 | void slice_init_new_context_exec(struct mm_struct *mm); |
|---|
| 31 | +void slice_setup_new_exec(void); |
|---|
| 35 | 32 | |
|---|
| 36 | | -#endif /* __ASSEMBLY__ */ |
|---|
| 33 | +#else /* CONFIG_PPC_MM_SLICES */ |
|---|
| 34 | + |
|---|
| 35 | +static inline void slice_init_new_context_exec(struct mm_struct *mm) {} |
|---|
| 36 | + |
|---|
| 37 | +static inline unsigned int get_slice_psize(struct mm_struct *mm, unsigned long addr) |
|---|
| 38 | +{ |
|---|
| 39 | + return 0; |
|---|
| 40 | +} |
|---|
| 37 | 41 | |
|---|
| 38 | 42 | #endif /* CONFIG_PPC_MM_SLICES */ |
|---|
| 39 | 43 | |
|---|
| 44 | +#endif /* __ASSEMBLY__ */ |
|---|
| 45 | + |
|---|
| 40 | 46 | #endif /* _ASM_POWERPC_SLICE_H */ |
|---|