Changeset 1c7a170 in mainline for kernel/generic/src/mm/as.c
- Timestamp:
- 2018-03-27T16:49:29Z (7 years ago)
- Parents:
- f303afc6 (diff), 94d211e (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-27 16:49:29)
- git-committer:
- GitHub <noreply@…> (2018-03-27 16:49:29)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/as.c
rf303afc6 r1c7a170 1217 1217 NO_TRACE static unsigned int area_flags_to_page_flags(unsigned int aflags) 1218 1218 { 1219 unsigned int flags = PAGE_USER | PAGE_PRESENT;1219 unsigned int flags = PAGE_USER; 1220 1220 1221 1221 if (aflags & AS_AREA_READ) 1222 flags |= PAGE_READ;1222 flags |= _PAGE_READ; 1223 1223 1224 1224 if (aflags & AS_AREA_WRITE) 1225 flags |= PAGE_WRITE;1225 flags |= _PAGE_WRITE; 1226 1226 1227 1227 if (aflags & AS_AREA_EXEC) 1228 flags |= PAGE_EXEC;1228 flags |= _PAGE_EXEC; 1229 1229 1230 1230 if (aflags & AS_AREA_CACHEABLE) 1231 1231 flags |= PAGE_CACHEABLE; 1232 else 1233 flags |= PAGE_NOT_CACHEABLE; 1232 1234 1233 1235 return flags;
Note:
See TracChangeset
for help on using the changeset viewer.