Rev 1726 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1726 | Rev 1730 | ||
---|---|---|---|
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 | typedef struct { |
- | |
136 | unsigned v : 1; /**< Valid */ |
- | |
137 | unsigned vsid : 24; /**< Virtual Segment ID */ |
- | |
138 | unsigned h : 1; /**< Primary/secondary hash */ |
- | |
139 | unsigned api : 6; /**< Abbreviated Page Index */ |
- | |
140 | unsigned rpn : 20; /**< Real Page Number */ |
- | |
141 | unsigned reserved0 : 3; |
- | |
142 | unsigned r : 1; /**< Reference */ |
- | |
143 | unsigned c : 1; /**< Change */ |
- | |
144 | unsigned wimg : 4; /**< Access control */ |
- | |
145 | unsigned reserved1 : 1; |
- | |
146 | unsigned pp : 2; /**< Page protection */ |
- | |
147 | } phte_t; |
- | |
148 | - | ||
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"))); |
- | |
151 | extern void pht_init(void); |
- | |
152 | - | ||
153 | #endif /* __ASM__ */ |
135 | #endif /* __ASM__ */ |
154 | 136 | ||
155 | #endif /* KERNEL */ |
137 | #endif /* KERNEL */ |
156 | 138 | ||
157 | #endif |
139 | #endif |