Changeset 6be2c13 in mainline for kernel/arch/riscv64/include/arch/mm/page.h
- Timestamp:
- 2018-03-16T20:58:20Z (7 years ago)
- Parents:
- 973be387 (diff), 4b1c7c6f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-16 20:58:20)
- git-committer:
- GitHub <noreply@…> (2018-03-16 20:58:20)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/riscv64/include/arch/mm/page.h
r973be387 r6be2c13 82 82 83 83 /* Flags mask for non-leaf page table entries */ 84 #define NON_LEAF_MASK (~(PAGE_ READ | PAGE_WRITE | PAGE_EXEC))84 #define NON_LEAF_MASK (~(PAGE_WRITE | PAGE_EXEC)) 85 85 86 86 /* Get PTE address accessors for each level. */ … … 183 183 pte_t *entry = &pt[i]; 184 184 185 return (((!entry->valid) << PAGE_ PRESENT_SHIFT) |185 return (((!entry->valid) << PAGE_NOT_PRESENT_SHIFT) | 186 186 (entry->user << PAGE_USER_SHIFT) | 187 (entry->readable << PAGE_READ_SHIFT) |188 187 (entry->writable << PAGE_WRITE_SHIFT) | 189 188 (entry->executable << PAGE_EXEC_SHIFT) | … … 196 195 197 196 entry->valid = !(flags & PAGE_NOT_PRESENT); 198 entry->readable = (flags & PAGE_READ) != 0;197 entry->readable = 1; 199 198 entry->writable = (flags & PAGE_WRITE) != 0; 200 199 entry->executable = (flags & PAGE_EXEC) != 0;
Note:
See TracChangeset
for help on using the changeset viewer.