- Timestamp:
- 2016-09-02T15:44:09Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e755b3f
- Parents:
- c1f7a315
- Location:
- uspace
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/mm/pager1.c
rc1f7a315 rae6021d 51 51 52 52 void *result = async_as_area_create(AS_AREA_ANY, size, 53 AS_AREA_READ | AS_AREA_CACHEABLE, vfs_pager_sess );53 AS_AREA_READ | AS_AREA_CACHEABLE, vfs_pager_sess, 0, 0, 0); 54 54 if (result == AS_MAP_FAILED) 55 55 return NULL; -
uspace/lib/c/generic/as.c
rc1f7a315 rae6021d 45 45 /** Create address space area. 46 46 * 47 * @param base Starting virtual address of the area.48 * If set to AS_AREA_ANY ((void *) -1),49 * the kernel finds amappable area.50 * @param size Size of the area.51 * @param flags Flags describing type of the area.52 * @param pager If non-negative, phone to the external pager backing the area.53 * If AS_AREA_UNPAGED (-1), the area is anonymous.47 * @param base Starting virtual address of the area. 48 * If set to AS_AREA_ANY ((void *) -1), the kernel finds a 49 * mappable area. 50 * @param size Size of the area. 51 * @param flags Flags describing type of the area. 52 * @param pager_info Pager info structure or AS_AREA_UNPAGED (NULL) if the area 53 * is not paged (i.e. anonymous). 54 54 * 55 55 * @return Starting virtual address of the created area on success. … … 57 57 * 58 58 */ 59 void *as_area_create(void *base, size_t size, unsigned int flags, int pager) 59 void *as_area_create(void *base, size_t size, unsigned int flags, 60 as_area_pager_info_t *pager_info) 60 61 { 61 62 return (void *) __SYSCALL5(SYS_AS_AREA_CREATE, (sysarg_t) base, 62 63 (sysarg_t) size, (sysarg_t) flags, (sysarg_t) __entry, 63 (sysarg_t) pager );64 (sysarg_t) pager_info); 64 65 } 65 66 -
uspace/lib/c/generic/async.c
rc1f7a315 rae6021d 117 117 #include <macros.h> 118 118 #include <as.h> 119 #include <abi/mm/as.h> 119 120 #include "private/libc.h" 120 121 … … 3383 3384 3384 3385 void *async_as_area_create(void *base, size_t size, unsigned int flags, 3385 async_sess_t *pager) 3386 { 3387 return as_area_create(base, size, flags, pager->phone); 3386 async_sess_t *pager, sysarg_t id1, sysarg_t id2, sysarg_t id3) 3387 { 3388 as_area_pager_info_t pager_info = { 3389 .pager = pager->phone, 3390 .id1 = id1, 3391 .id2 = id2, 3392 .id3 = id3 3393 }; 3394 return as_area_create(base, size, flags, &pager_info); 3388 3395 } 3389 3396 -
uspace/lib/c/include/as.h
rc1f7a315 rae6021d 53 53 } 54 54 55 extern void *as_area_create(void *, size_t, unsigned int, int); 55 extern void *as_area_create(void *, size_t, unsigned int, 56 as_area_pager_info_t *); 56 57 extern int as_area_resize(void *, size_t, unsigned int); 57 58 extern int as_area_change_flags(void *, unsigned int); -
uspace/lib/c/include/async.h
rc1f7a315 rae6021d 488 488 extern void async_remote_state_release_exchange(async_exch_t *); 489 489 490 extern void *async_as_area_create(void *, size_t, unsigned int, async_sess_t *); 490 extern void *async_as_area_create(void *, size_t, unsigned int, async_sess_t *, 491 sysarg_t, sysarg_t, sysarg_t); 491 492 492 493 #endif
Note:
See TracChangeset
for help on using the changeset viewer.