Rev 808 | Rev 831 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 808 | Rev 825 | ||
---|---|---|---|
Line 99... | Line 99... | ||
99 | (!p->page_cache_disable)<<PAGE_CACHEABLE_SHIFT | |
99 | (!p->page_cache_disable)<<PAGE_CACHEABLE_SHIFT | |
100 | (!p->present)<<PAGE_PRESENT_SHIFT | |
100 | (!p->present)<<PAGE_PRESENT_SHIFT | |
101 | p->uaccessible<<PAGE_USER_SHIFT | |
101 | p->uaccessible<<PAGE_USER_SHIFT | |
102 | 1<<PAGE_READ_SHIFT | |
102 | 1<<PAGE_READ_SHIFT | |
103 | p->writeable<<PAGE_WRITE_SHIFT | |
103 | p->writeable<<PAGE_WRITE_SHIFT | |
104 | (!p->no_execute)<<PAGE_EXEC_SHIFT |
104 | (!p->no_execute)<<PAGE_EXEC_SHIFT | |
- | 105 | p->global<<PAGE_GLOBAL_SHIFT |
|
105 | ); |
106 | ); |
106 | } |
107 | } |
107 | 108 | ||
108 | static inline void set_pt_addr(pte_t *pt, index_t i, __address a) |
109 | static inline void set_pt_addr(pte_t *pt, index_t i, __address a) |
109 | { |
110 | { |
Line 120... | Line 121... | ||
120 | p->page_cache_disable = !(flags & PAGE_CACHEABLE); |
121 | p->page_cache_disable = !(flags & PAGE_CACHEABLE); |
121 | p->present = !(flags & PAGE_NOT_PRESENT); |
122 | p->present = !(flags & PAGE_NOT_PRESENT); |
122 | p->uaccessible = (flags & PAGE_USER) != 0; |
123 | p->uaccessible = (flags & PAGE_USER) != 0; |
123 | p->writeable = (flags & PAGE_WRITE) != 0; |
124 | p->writeable = (flags & PAGE_WRITE) != 0; |
124 | p->no_execute = (flags & PAGE_EXEC) == 0; |
125 | p->no_execute = (flags & PAGE_EXEC) == 0; |
- | 126 | p->global = (flags & PAGE_GLOBAL) != 0; |
|
125 | } |
127 | } |
126 | 128 | ||
127 | extern void page_arch_init(void); |
129 | extern void page_arch_init(void); |
128 | 130 | ||
129 | #endif |
131 | #endif |