Rev 646 | Rev 746 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 646 | Rev 691 | ||
---|---|---|---|
Line 36... | Line 36... | ||
36 | #define PAGE_SIZE FRAME_SIZE |
36 | #define PAGE_SIZE FRAME_SIZE |
37 | 37 | ||
38 | #define KA2PA(x) ((__address) (x)) |
38 | #define KA2PA(x) ((__address) (x)) |
39 | #define PA2KA(x) ((__address) (x)) |
39 | #define PA2KA(x) ((__address) (x)) |
40 | 40 | ||
41 | #define PTL0_INDEX_ARCH(vaddr) 0 |
- | |
42 | #define PTL1_INDEX_ARCH(vaddr) 0 |
- | |
43 | #define PTL2_INDEX_ARCH(vaddr) 0 |
- | |
44 | #define PTL3_INDEX_ARCH(vaddr) 0 |
- | |
45 | - | ||
46 | #define GET_PTL0_ADDRESS_ARCH() 0 |
41 | #define GET_PTL0_ADDRESS_ARCH() 0 |
47 | #define SET_PTL0_ADDRESS_ARCH(ptl0) |
42 | #define SET_PTL0_ADDRESS_ARCH(ptl0) |
48 | 43 | ||
49 | #define GET_PTL1_ADDRESS_ARCH(ptl0, i) ((pte_t *) 0) |
- | |
50 | #define GET_PTL2_ADDRESS_ARCH(ptl1, i) ((pte_t *) 0) |
- | |
51 | #define GET_PTL3_ADDRESS_ARCH(ptl2, i) ((pte_t *) 0) |
- | |
52 | #define GET_FRAME_ADDRESS_ARCH(ptl3, i) ((pte_t *) 0) |
- | |
53 | - | ||
54 | #define SET_PTL1_ADDRESS_ARCH(ptl0, i, a) |
- | |
55 | #define SET_PTL2_ADDRESS_ARCH(ptl1, i, a) |
- | |
56 | #define SET_PTL3_ADDRESS_ARCH(ptl2, i, a) |
- | |
57 | #define SET_FRAME_ADDRESS_ARCH(ptl3, i, a) |
- | |
58 | - | ||
59 | #define GET_PTL1_FLAGS_ARCH(ptl0, i) 0 |
- | |
60 | #define GET_PTL2_FLAGS_ARCH(ptl1, i) 0 |
- | |
61 | #define GET_PTL3_FLAGS_ARCH(ptl2, i) 0 |
- | |
62 | #define GET_FRAME_FLAGS_ARCH(ptl3, i) 0 |
- | |
63 | - | ||
64 | #define SET_PTL1_FLAGS_ARCH(ptl0, i, x) |
- | |
65 | #define SET_PTL2_FLAGS_ARCH(ptl1, i, x) |
- | |
66 | #define SET_PTL3_FLAGS_ARCH(ptl2, i, x) |
- | |
67 | #define SET_FRAME_FLAGS_ARCH(ptl3, i, x) |
- | |
68 | - | ||
69 | union page_address { |
44 | union page_address { |
70 | __address address; |
45 | __address address; |
71 | struct { |
46 | struct { |
72 | __u64 vpn : 51; /**< Virtual Page Number. */ |
47 | __u64 vpn : 51; /**< Virtual Page Number. */ |
73 | unsigned offset : 13; /**< Offset. */ |
48 | unsigned offset : 13; /**< Offset. */ |