Subversion Repositories HelenOS-historic

Rev

Rev 831 | Rev 977 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 831 Rev 832
Line 45... Line 45...
45
#else
45
#else
46
# define KA2PA(x)      ((x) - 0xffffffff80000000)
46
# define KA2PA(x)      ((x) - 0xffffffff80000000)
47
# define PA2KA(x)      ((x) + 0xffffffff80000000)
47
# define PA2KA(x)      ((x) + 0xffffffff80000000)
48
#endif
48
#endif
49
 
49
 
-
 
50
#define PTL0_ENTRIES_ARCH   512
-
 
51
#define PTL1_ENTRIES_ARCH   512
-
 
52
#define PTL2_ENTRIES_ARCH   512
-
 
53
#define PTL3_ENTRIES_ARCH   512
-
 
54
 
50
#define PTL0_INDEX_ARCH(vaddr)  (((vaddr)>>39)&0x1ff)
55
#define PTL0_INDEX_ARCH(vaddr)  (((vaddr)>>39)&0x1ff)
51
#define PTL1_INDEX_ARCH(vaddr)  (((vaddr)>>30)&0x1ff)
56
#define PTL1_INDEX_ARCH(vaddr)  (((vaddr)>>30)&0x1ff)
52
#define PTL2_INDEX_ARCH(vaddr)  (((vaddr)>>21)&0x1ff)
57
#define PTL2_INDEX_ARCH(vaddr)  (((vaddr)>>21)&0x1ff)
53
#define PTL3_INDEX_ARCH(vaddr)  (((vaddr)>>12)&0x1ff)
58
#define PTL3_INDEX_ARCH(vaddr)  (((vaddr)>>12)&0x1ff)
54
 
59
 
Line 71... Line 76...
71
#define SET_PTL1_FLAGS_ARCH(ptl0, i, x)     set_pt_flags((pte_t *)(ptl0), (index_t)(i), (x))
76
#define SET_PTL1_FLAGS_ARCH(ptl0, i, x)     set_pt_flags((pte_t *)(ptl0), (index_t)(i), (x))
72
#define SET_PTL2_FLAGS_ARCH(ptl1, i, x)         set_pt_flags((pte_t *)(ptl1), (index_t)(i), (x))
77
#define SET_PTL2_FLAGS_ARCH(ptl1, i, x)         set_pt_flags((pte_t *)(ptl1), (index_t)(i), (x))
73
#define SET_PTL3_FLAGS_ARCH(ptl2, i, x)         set_pt_flags((pte_t *)(ptl2), (index_t)(i), (x))
78
#define SET_PTL3_FLAGS_ARCH(ptl2, i, x)         set_pt_flags((pte_t *)(ptl2), (index_t)(i), (x))
74
#define SET_FRAME_FLAGS_ARCH(ptl3, i, x)    set_pt_flags((pte_t *)(ptl3), (index_t)(i), (x))
79
#define SET_FRAME_FLAGS_ARCH(ptl3, i, x)    set_pt_flags((pte_t *)(ptl3), (index_t)(i), (x))
75
 
80
 
-
 
81
#define PTE_VALID_ARCH(p)           (*((__u64 *) (p)) != 0)
-
 
82
 
76
#ifndef __ASM__
83
#ifndef __ASM__
77
 
84
 
78
/** Page Table Entry. */
85
/** Page Table Entry. */
79
struct page_specifier {
86
struct page_specifier {
80
    unsigned present : 1;
87
    unsigned present : 1;