Rev 1702 | Rev 1730 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1702 | Rev 1726 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
27 | */ |
28 | 28 | ||
29 | /** @addtogroup ppc32mm |
29 | /** @addtogroup ppc32mm |
30 | * @{ |
30 | * @{ |
31 | */ |
31 | */ |
32 | /** @file |
32 | /** @file |
33 | */ |
33 | */ |
34 | 34 | ||
Line 130... | Line 130... | ||
130 | p->valid = 1; |
130 | p->valid = 1; |
131 | } |
131 | } |
132 | 132 | ||
133 | extern void page_arch_init(void); |
133 | extern void page_arch_init(void); |
134 | 134 | ||
135 | #define PHT_BITS 16 |
- | |
136 | #define PHT_ORDER 4 |
- | |
137 | - | ||
138 | typedef struct { |
135 | typedef struct { |
139 | unsigned v : 1; /**< Valid */ |
136 | unsigned v : 1; /**< Valid */ |
140 | unsigned vsid : 24; /**< Virtual Segment ID */ |
137 | unsigned vsid : 24; /**< Virtual Segment ID */ |
141 | unsigned h : 1; /**< Primary/secondary hash */ |
138 | unsigned h : 1; /**< Primary/secondary hash */ |
142 | unsigned api : 6; /**< Abbreviated Page Index */ |
139 | unsigned api : 6; /**< Abbreviated Page Index */ |
Line 148... | Line 145... | ||
148 | unsigned reserved1 : 1; |
145 | unsigned reserved1 : 1; |
149 | unsigned pp : 2; /**< Page protection */ |
146 | unsigned pp : 2; /**< Page protection */ |
150 | } phte_t; |
147 | } phte_t; |
151 | 148 | ||
152 | extern void pht_refill(int n, istate_t *istate); |
149 | extern void pht_refill(int n, istate_t *istate); |
- | 150 | extern bool pht_real_refill(int n, istate_t *istate) __attribute__ ((section("K_UNMAPPED_TEXT_START"))); |
|
153 | extern void pht_init(void); |
151 | extern void pht_init(void); |
154 | 152 | ||
155 | #endif /* __ASM__ */ |
153 | #endif /* __ASM__ */ |
156 | 154 | ||
157 | #endif /* KERNEL */ |
155 | #endif /* KERNEL */ |
158 | 156 | ||
159 | #endif |
157 | #endif |
160 | 158 | ||
161 | /** @} |
159 | /** @} |
162 | */ |
160 | */ |
163 | - |