Changeset b7fd2a0 in mainline for kernel/generic/src/mm/as.c
- Timestamp:
- 2018-01-13T03:10:29Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a53ed3a
- Parents:
- 36f0738
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/as.c
r36f0738 rb7fd2a0 111 111 as_t *AS_KERNEL = NULL; 112 112 113 NO_TRACE static int as_constructor(void *obj, unsigned int flags)113 NO_TRACE static errno_t as_constructor(void *obj, unsigned int flags) 114 114 { 115 115 as_t *as = (as_t *) obj; … … 760 760 * 761 761 */ 762 int as_area_resize(as_t *as, uintptr_t address, size_t size, unsigned int flags)762 errno_t as_area_resize(as_t *as, uintptr_t address, size_t size, unsigned int flags) 763 763 { 764 764 if (!IS_ALIGNED(address, PAGE_SIZE)) … … 969 969 * 970 970 */ 971 int as_area_destroy(as_t *as, uintptr_t address)971 errno_t as_area_destroy(as_t *as, uintptr_t address) 972 972 { 973 973 mutex_lock(&as->lock); … … 1085 1085 * 1086 1086 */ 1087 int as_area_share(as_t *src_as, uintptr_t src_base, size_t acc_size,1087 errno_t as_area_share(as_t *src_as, uintptr_t src_base, size_t acc_size, 1088 1088 as_t *dst_as, unsigned int dst_flags_mask, uintptr_t *dst_base, 1089 1089 uintptr_t bound) … … 1248 1248 * 1249 1249 */ 1250 int as_area_change_flags(as_t *as, unsigned int flags, uintptr_t address)1250 errno_t as_area_change_flags(as_t *as, unsigned int flags, uintptr_t address) 1251 1251 { 1252 1252 /* Flags for the new memory mapping */ … … 2208 2208 } 2209 2209 2210 sys arg_t sys_as_area_resize(uintptr_t address, size_t size, unsigned int flags)2211 { 2212 return (sys arg_t) as_area_resize(AS, address, size, 0);2213 } 2214 2215 sys arg_t sys_as_area_change_flags(uintptr_t address, unsigned int flags)2216 { 2217 return (sys arg_t) as_area_change_flags(AS, flags, address);2218 } 2219 2220 sys arg_t sys_as_area_destroy(uintptr_t address)2221 { 2222 return (sys arg_t) as_area_destroy(AS, address);2210 sys_errno_t sys_as_area_resize(uintptr_t address, size_t size, unsigned int flags) 2211 { 2212 return (sys_errno_t) as_area_resize(AS, address, size, 0); 2213 } 2214 2215 sys_errno_t sys_as_area_change_flags(uintptr_t address, unsigned int flags) 2216 { 2217 return (sys_errno_t) as_area_change_flags(AS, flags, address); 2218 } 2219 2220 sys_errno_t sys_as_area_destroy(uintptr_t address) 2221 { 2222 return (sys_errno_t) as_area_destroy(AS, address); 2223 2223 } 2224 2224
Note:
See TracChangeset
for help on using the changeset viewer.