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 48... | Line 48... | ||
48 | #define PTL0_INDEX_ARCH(vaddr) (((vaddr)>>39)&0x1ff) |
48 | #define PTL0_INDEX_ARCH(vaddr) (((vaddr)>>39)&0x1ff) |
49 | #define PTL1_INDEX_ARCH(vaddr) (((vaddr)>>30)&0x1ff) |
49 | #define PTL1_INDEX_ARCH(vaddr) (((vaddr)>>30)&0x1ff) |
50 | #define PTL2_INDEX_ARCH(vaddr) (((vaddr)>>21)&0x1ff) |
50 | #define PTL2_INDEX_ARCH(vaddr) (((vaddr)>>21)&0x1ff) |
51 | #define PTL3_INDEX_ARCH(vaddr) (((vaddr)>>12)&0x1ff) |
51 | #define PTL3_INDEX_ARCH(vaddr) (((vaddr)>>12)&0x1ff) |
52 | 52 | ||
53 | #define GET_PTL0_ADDRESS_ARCH() ((pte_t *) read_cr3()) |
- | |
54 | #define GET_PTL1_ADDRESS_ARCH(ptl0, i) ((pte_t *) ((((__u64) ((pte_t *)(ptl0))[(i)].addr_12_31)<<12) | (((__u64) ((pte_t *)(ptl0))[(i)].addr_32_51)<<32 ))) |
53 | #define GET_PTL1_ADDRESS_ARCH(ptl0, i) ((pte_t *) ((((__u64) ((pte_t *)(ptl0))[(i)].addr_12_31)<<12) | (((__u64) ((pte_t *)(ptl0))[(i)].addr_32_51)<<32 ))) |
55 | #define GET_PTL2_ADDRESS_ARCH(ptl1, i) ((pte_t *) ((((__u64) ((pte_t *)(ptl1))[(i)].addr_12_31)<<12) | (((__u64) ((pte_t *)(ptl1))[(i)].addr_32_51)<<32 ))) |
54 | #define GET_PTL2_ADDRESS_ARCH(ptl1, i) ((pte_t *) ((((__u64) ((pte_t *)(ptl1))[(i)].addr_12_31)<<12) | (((__u64) ((pte_t *)(ptl1))[(i)].addr_32_51)<<32 ))) |
56 | #define GET_PTL3_ADDRESS_ARCH(ptl2, i) ((pte_t *) ((((__u64) ((pte_t *)(ptl2))[(i)].addr_12_31)<<12) | (((__u64) ((pte_t *)(ptl2))[(i)].addr_32_51)<<32 ))) |
55 | #define GET_PTL3_ADDRESS_ARCH(ptl2, i) ((pte_t *) ((((__u64) ((pte_t *)(ptl2))[(i)].addr_12_31)<<12) | (((__u64) ((pte_t *)(ptl2))[(i)].addr_32_51)<<32 ))) |
57 | #define GET_FRAME_ADDRESS_ARCH(ptl3, i) ((__address *) ((((__u64) ((pte_t *)(ptl3))[(i)].addr_12_31)<<12) | (((__u64) ((pte_t *)(ptl3))[(i)].addr_32_51)<<32 ))) |
56 | #define GET_FRAME_ADDRESS_ARCH(ptl3, i) ((__address *) ((((__u64) ((pte_t *)(ptl3))[(i)].addr_12_31)<<12) | (((__u64) ((pte_t *)(ptl3))[(i)].addr_32_51)<<32 ))) |
58 | 57 |