Rev 534 | Rev 765 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 534 | Rev 760 | ||
---|---|---|---|
Line 57... | Line 57... | ||
57 | #define PTL0_INDEX_ARCH(vaddr) ((vaddr)>>26) |
57 | #define PTL0_INDEX_ARCH(vaddr) ((vaddr)>>26) |
58 | #define PTL1_INDEX_ARCH(vaddr) 0 |
58 | #define PTL1_INDEX_ARCH(vaddr) 0 |
59 | #define PTL2_INDEX_ARCH(vaddr) 0 |
59 | #define PTL2_INDEX_ARCH(vaddr) 0 |
60 | #define PTL3_INDEX_ARCH(vaddr) (((vaddr)>>14)&0x3fff) |
60 | #define PTL3_INDEX_ARCH(vaddr) (((vaddr)>>14)&0x3fff) |
61 | 61 | ||
62 | #define GET_PTL0_ADDRESS_ARCH() (PTL0) |
62 | #define SET_PTL0_ADDRESS_ARCH(ptl0) |
63 | #define SET_PTL0_ADDRESS_ARCH(ptl0) (PTL0 = (pte_t *)(ptl0)) |
- | |
64 | 63 | ||
65 | #define GET_PTL1_ADDRESS_ARCH(ptl0, i) (((pte_t *)(ptl0))[(i)].lo.pfn<<12) |
64 | #define GET_PTL1_ADDRESS_ARCH(ptl0, i) (((pte_t *)(ptl0))[(i)].lo.pfn<<12) |
66 | #define GET_PTL2_ADDRESS_ARCH(ptl1, i) (ptl1) |
65 | #define GET_PTL2_ADDRESS_ARCH(ptl1, i) (ptl1) |
67 | #define GET_PTL3_ADDRESS_ARCH(ptl2, i) (ptl2) |
66 | #define GET_PTL3_ADDRESS_ARCH(ptl2, i) (ptl2) |
68 | #define GET_FRAME_ADDRESS_ARCH(ptl3, i) (((pte_t *)(ptl3))[(i)].lo.pfn<<12) |
67 | #define GET_FRAME_ADDRESS_ARCH(ptl3, i) (((pte_t *)(ptl3))[(i)].lo.pfn<<12) |
Line 113... | Line 112... | ||
113 | p->w = (flags & PAGE_WRITE) != 0; |
112 | p->w = (flags & PAGE_WRITE) != 0; |
114 | } |
113 | } |
115 | 114 | ||
116 | extern void page_arch_init(void); |
115 | extern void page_arch_init(void); |
117 | 116 | ||
118 | extern pte_t *PTL0; |
- | |
119 | - | ||
120 | #endif /* __ASM__ */ |
117 | #endif /* __ASM__ */ |
121 | 118 | ||
122 | #endif |
119 | #endif |