Rev 1215 | Rev 1374 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1215 | Rev 1270 | ||
---|---|---|---|
Line 65... | Line 65... | ||
65 | #define PTL0_INDEX_ARCH(vaddr) (((vaddr) >> 22) & 0x3ff) |
65 | #define PTL0_INDEX_ARCH(vaddr) (((vaddr) >> 22) & 0x3ff) |
66 | #define PTL1_INDEX_ARCH(vaddr) 0 |
66 | #define PTL1_INDEX_ARCH(vaddr) 0 |
67 | #define PTL2_INDEX_ARCH(vaddr) 0 |
67 | #define PTL2_INDEX_ARCH(vaddr) 0 |
68 | #define PTL3_INDEX_ARCH(vaddr) (((vaddr) >> 12) & 0x3ff) |
68 | #define PTL3_INDEX_ARCH(vaddr) (((vaddr) >> 12) & 0x3ff) |
69 | 69 | ||
70 | #define SET_PTL0_ADDRESS_ARCH(ptl0) |
- | |
71 | - | ||
72 | #define GET_PTL1_ADDRESS_ARCH(ptl0, i) (((pte_t *) (ptl0))[(i)].pfn << 12) |
70 | #define GET_PTL1_ADDRESS_ARCH(ptl0, i) (((pte_t *) (ptl0))[(i)].pfn << 12) |
73 | #define GET_PTL2_ADDRESS_ARCH(ptl1, i) (ptl1) |
71 | #define GET_PTL2_ADDRESS_ARCH(ptl1, i) (ptl1) |
74 | #define GET_PTL3_ADDRESS_ARCH(ptl2, i) (ptl2) |
72 | #define GET_PTL3_ADDRESS_ARCH(ptl2, i) (ptl2) |
75 | #define GET_FRAME_ADDRESS_ARCH(ptl3, i) (((pte_t *) (ptl3))[(i)].pfn << 12) |
73 | #define GET_FRAME_ADDRESS_ARCH(ptl3, i) (((pte_t *) (ptl3))[(i)].pfn << 12) |
76 | 74 | ||
- | 75 | #define SET_PTL0_ADDRESS_ARCH(ptl0) |
|
77 | #define SET_PTL1_ADDRESS_ARCH(ptl0, i, a) (((pte_t *) (ptl0))[(i)].pfn = (a) >> 12) |
76 | #define SET_PTL1_ADDRESS_ARCH(ptl0, i, a) (((pte_t *) (ptl0))[(i)].pfn = (a) >> 12) |
78 | #define SET_PTL2_ADDRESS_ARCH(ptl1, i, a) |
77 | #define SET_PTL2_ADDRESS_ARCH(ptl1, i, a) |
79 | #define SET_PTL3_ADDRESS_ARCH(ptl2, i, a) |
78 | #define SET_PTL3_ADDRESS_ARCH(ptl2, i, a) |
80 | #define SET_FRAME_ADDRESS_ARCH(ptl3, i, a) (((pte_t *) (ptl3))[(i)].pfn = (a) >> 12) |
79 | #define SET_FRAME_ADDRESS_ARCH(ptl3, i, a) (((pte_t *) (ptl3))[(i)].pfn = (a) >> 12) |
81 | 80 |