Changeset 94d211e in mainline for kernel/genarch/src/mm/page_ht.c
- Timestamp:
- 2018-03-21T19:32:48Z (7 years ago)
- Children:
- 1c7a170
- Parents:
- 973be387
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/mm/page_ht.c
r973be387 r94d211e 61 61 static void ht_mapping_remove(as_t *, uintptr_t); 62 62 static bool ht_mapping_find(as_t *, uintptr_t, bool, pte_t *); 63 static void ht_mapping_update(as_t *, uintptr_t, bool, pte_t *);63 static void ht_mapping_update(as_t *, uintptr_t, bool, const pte_t *); 64 64 static void ht_mapping_make_global(uintptr_t, size_t); 65 65 … … 168 168 169 169 pte->g = (flags & PAGE_GLOBAL) != 0; 170 pte->x = (flags & PAGE_EXEC) != 0;171 pte->w = (flags & PAGE_WRITE) != 0;170 pte->x = (flags & _PAGE_EXEC) != 0; 171 pte->w = (flags & _PAGE_WRITE) != 0; 172 172 pte->k = !(flags & PAGE_USER); 173 173 pte->c = (flags & PAGE_CACHEABLE) != 0; … … 268 268 * @param pte New PTE. 269 269 */ 270 void ht_mapping_update(as_t *as, uintptr_t page, bool nolock, pte_t *pte)270 void ht_mapping_update(as_t *as, uintptr_t page, bool nolock, const pte_t *pte) 271 271 { 272 272 irq_spinlock_lock(&page_ht_lock, true);
Note:
See TracChangeset
for help on using the changeset viewer.