Home
last modified time | relevance | path

Searched refs:aspace (Results 1 – 12 of 12) sorted by relevance

/trusty/kernel/app/mmutest/
Dmmutest.c50 vmm_aspace_t* aspace = vmm_get_kernel_aspace(); in mmutest_run_in_thread() local
60 ret = vmm_alloc(aspace, "canary", PAGE_SIZE, (void**)&canary, 0, in mmutest_run_in_thread()
87 vmm_free_region(aspace, (vaddr_t)canary); in mmutest_run_in_thread()
96 vmm_aspace_t* aspace = vmm_get_kernel_aspace(); in mmutest_alloc() local
98 ret = vmm_alloc_contiguous(aspace, "mmutest", PAGE_SIZE, ptrp, 0, 0, in mmutest_alloc()
106 arch_mmu_query(&aspace->arch_aspace, (vaddr_t)*ptrp, NULL, in mmutest_alloc()
158 vmm_aspace_t* aspace = vmm_get_kernel_aspace(); in mmu_test_execute() local
170 ret = vmm_alloc_obj(aspace, "mmutest_w", vmm_obj, 0, alloc_len, &ptr, 0, 0, in mmu_test_execute()
179 ret = vmm_alloc_obj(aspace, "mmutest_flags", vmm_obj, 0, alloc_len, in mmu_test_execute()
188 arch_mmu_query(&aspace->arch_aspace, (vaddr_t)execute_ptr, NULL, in mmu_test_execute()
[all …]
/trusty/kernel/app/usercopytest/
Diovectest.c5 struct vmm_aspace* aspace; member
13 _state->aspace = NULL; in TEST_F_SETUP()
16 struct vmm_aspace* aspace = NULL; in TEST_F_SETUP() local
17 ASSERT_EQ(0, vmm_create_aspace(&aspace, "iovectest", 0)); in TEST_F_SETUP()
18 _state->aspace = aspace; in TEST_F_SETUP()
24 ASSERT_EQ(0, vmm_alloc(aspace, "iovectest", PAGE_SIZE, &user_ptr, 0, in TEST_F_SETUP()
29 vmm_set_active_aspace(aspace); in TEST_F_SETUP()
40 if (_state->aspace) { in TEST_F_TEARDOWN()
41 vmm_free_aspace(_state->aspace); in TEST_F_TEARDOWN()
42 _state->aspace = NULL; in TEST_F_TEARDOWN()
Dusercopytest.c111 struct vmm_aspace* aspace; member
120 _state->aspace = NULL; in TEST_F_SETUP()
122 ret = vmm_create_aspace(&_state->aspace, "usercopy_test", 0); in TEST_F_SETUP()
126 ret = vmm_alloc(_state->aspace, "start-page", PAGE_SIZE, &addr, 0, in TEST_F_SETUP()
136 ret = vmm_alloc(_state->aspace, "end-page", PAGE_SIZE, &addr, 0, in TEST_F_SETUP()
143 vmm_set_active_aspace(_state->aspace); in TEST_F_SETUP()
152 if (_state->aspace) { in TEST_F_TEARDOWN()
153 vmm_free_aspace(_state->aspace); in TEST_F_TEARDOWN()
/trusty/kernel/lib/trusty/
Dmemref.c112 rc = vmm_alloc_obj(app->aspace, "memref", memref->slice.obj, in memref_mmap()
193 status_t memref_create_from_aspace(const vmm_aspace_t *aspace, in memref_create_from_aspace() argument
198 DEBUG_ASSERT(aspace); in memref_create_from_aspace()
206 status_t rc = vmm_get_obj(aspace, vaddr, size, &memref->slice); in memref_create_from_aspace()
Dsyscall.c184 trusty_app->aspace, "brk_heap", size, in sys_brk()
311 ret = vmm_alloc(trusty_app->aspace, "mmap", size, &ptr, 0, vmm_flags, in sys_mmap()
345 return vmm_free_region_etc(trusty_app->aspace, uaddr, size, 0); in sys_munmap()
369 ret = vmm_get_obj(trusty_app->aspace, vaddr, size, &slice); in sys_prepare_dma()
462 status_t rc = memref_create_from_aspace(app->aspace, uaddr, size, mmap_prot, in sys_memref_create()
Dtrusty_app.c508 vmm_set_active_aspace(trusty_thread->app->aspace); in trusty_thread_startup()
541 vmm_free_region(trusty_thread->app->aspace, stack_bot); in trusty_thread_exit()
551 vmm_free_region(trusty_thread->app->aspace, in trusty_thread_exit()
577 err = vmm_alloc(trusty_app->aspace, "stack", stack_size, (void**)&stack_bot, in trusty_thread_create()
592 trusty_app->aspace, "shadow stack", shadow_stack_size, in trusty_thread_create()
641 vmm_free_region(trusty_app->aspace, shadow_stack_base); in trusty_thread_create()
645 vmm_free_region(trusty_app->aspace, stack_bot); in trusty_thread_create()
1132 trusty_app->aspace, "brk_heap_res", brk_size, in init_brk()
1171 vmm_aspace_t* aspace, in select_load_bias() argument
1196 if (!vmm_find_spot(aspace, size, &spot)) { in select_load_bias()
[all …]
/trusty/kernel/app/stdcalltest/
Dstdcalltest.c69 struct vmm_aspace* aspace = vmm_get_kernel_aspace(); in stdcalltest_sharedmem_rw() local
79 ret = ext_mem_map_obj_id(aspace, "stdcalltest", client_id, mem_obj_id, 0, 0, in stdcalltest_sharedmem_rw()
101 ret = vmm_free_region(aspace, (vaddr_t)va); in stdcalltest_sharedmem_rw()
/trusty/kernel/lib/trusty/include/lib/trusty/
Dmemref.h72 status_t memref_create_from_aspace(const vmm_aspace_t* aspace,
Dtrusty_app.h155 vmm_aspace_t* aspace; member
/trusty/kernel/lib/extmem/
Dexternal_memory.c159 status_t ext_mem_map_obj_id(vmm_aspace_t* aspace, in ext_mem_map_obj_id() argument
188 err = vmm_alloc_obj(aspace, name, vmm_obj, offset, size, ptr, align_log2, in ext_mem_map_obj_id()
/trusty/kernel/lib/extmem/include/lib/extmem/
Dextmem.h218 status_t ext_mem_map_obj_id(struct vmm_aspace* aspace,
/trusty/kernel/app/userscstest/
Duserscstest.c158 struct vmm_aspace* uspace = ta->aspace; in trusty_app_callback()