Lines Matching refs:pte

44 #define CONVERT_PTE(pte)  argument
45 #define PTE_MAKEWRITE_HIGH(pte, ptr) \ argument
46 lw pte, 4(ptr); \
47 ori pte, (_PAGE_VALID | _PAGE_DIRTY); \
48 sw pte, 4(ptr); \
49 lw pte, 0(ptr);
51 #define PTE_MAKEVALID_HIGH(pte, ptr) \ argument
52 lw pte, 4(ptr); \
53 ori pte, pte, _PAGE_VALID; \
54 sw pte, 4(ptr); \
55 lw pte, 0(ptr);
68 #define CONVERT_PTE(pte) srl pte, pte, 6 argument
69 #define PTE_MAKEWRITE_HIGH(pte, ptr) argument
70 #define PTE_MAKEVALID_HIGH(pte, ptr) argument
111 GET_PTE_OFF(k0) # get pte offset
115 PTE_L k0, PTE_HALF(k1) # get even pte
118 PTE_L k1, (PTE_HALF+PTE_SIZE)(k1) # get odd pte
168 #define LOAD_PTE(pte, ptr) \ argument
169 GET_PGD(pte, ptr) \
170 mfc0 pte, CP0_BADVADDR; \
171 srl pte, pte, _PGDIR_SHIFT; \
172 sll pte, pte, 2; \
173 addu ptr, ptr, pte; \
174 mfc0 pte, CP0_BADVADDR; \
176 srl pte, pte, PTE_INDX_SHIFT; \
177 and pte, pte, PTE_INDX_MSK; \
178 addu ptr, ptr, pte; \
179 PTE_L pte, (ptr);
213 #define PTE_PRESENT(pte, ptr, label) \ argument
214 andi pte, pte, (_PAGE_PRESENT | _PAGE_READ); \
215 xori pte, pte, (_PAGE_PRESENT | _PAGE_READ); \
216 bnez pte, label; \
217 PTE_L pte, (ptr);
220 #define PTE_MAKEVALID(pte, ptr) \ argument
221 ori pte, pte, (_PAGE_VALID | _PAGE_ACCESSED); \
222 PTE_S pte, (ptr);
227 #define PTE_WRITABLE(pte, ptr, label) \ argument
228 andi pte, pte, (_PAGE_PRESENT | _PAGE_WRITE); \
229 xori pte, pte, (_PAGE_PRESENT | _PAGE_WRITE); \
230 bnez pte, label; \
231 PTE_L pte, (ptr);
236 #define PTE_MAKEWRITE(pte, ptr) \ argument
237 ori pte, pte, (_PAGE_ACCESSED | _PAGE_MODIFIED | \
239 PTE_S pte, (ptr);