Subversion Repositories HelenOS-historic

Rev

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 46... Line 46...
46
#define PTL0_INDEX_ARCH(vaddr)  (((vaddr)>>22)&0x3ff)
46
#define PTL0_INDEX_ARCH(vaddr)  (((vaddr)>>22)&0x3ff)
47
#define PTL1_INDEX_ARCH(vaddr)  0
47
#define PTL1_INDEX_ARCH(vaddr)  0
48
#define PTL2_INDEX_ARCH(vaddr)  0
48
#define PTL2_INDEX_ARCH(vaddr)  0
49
#define PTL3_INDEX_ARCH(vaddr)  (((vaddr)>>12)&0x3ff)
49
#define PTL3_INDEX_ARCH(vaddr)  (((vaddr)>>12)&0x3ff)
50
 
50
 
51
#define GET_PTL0_ADDRESS_ARCH()         ((pte_t *) read_cr3())
-
 
52
#define GET_PTL1_ADDRESS_ARCH(ptl0, i)      ((pte_t *)((((pte_t *)(ptl0))[(i)].frame_address)<<12))
51
#define GET_PTL1_ADDRESS_ARCH(ptl0, i)      ((pte_t *)((((pte_t *)(ptl0))[(i)].frame_address)<<12))
53
#define GET_PTL2_ADDRESS_ARCH(ptl1, i)      (ptl1)
52
#define GET_PTL2_ADDRESS_ARCH(ptl1, i)      (ptl1)
54
#define GET_PTL3_ADDRESS_ARCH(ptl2, i)      (ptl2)
53
#define GET_PTL3_ADDRESS_ARCH(ptl2, i)      (ptl2)
55
#define GET_FRAME_ADDRESS_ARCH(ptl3, i)     ((__address)((((pte_t *)(ptl3))[(i)].frame_address)<<12))
54
#define GET_FRAME_ADDRESS_ARCH(ptl3, i)     ((__address)((((pte_t *)(ptl3))[(i)].frame_address)<<12))
56
 
55