/trusty/kernel/lib/extmem/ |
D | external_memory.c | 53 uint arch_mmu_flags, in ext_mem_obj_initialize() argument 59 obj->arch_mmu_flags = arch_mmu_flags; in ext_mem_obj_initialize() 82 int ext_mem_obj_check_flags(struct vmm_obj* obj, uint* arch_mmu_flags) { in ext_mem_obj_check_flags() argument 86 ext_obj->id, ext_obj->arch_mmu_flags, *arch_mmu_flags); in ext_mem_obj_check_flags() 94 if (!(*arch_mmu_flags & ARCH_MMU_FLAG_PERM_RO) && in ext_mem_obj_check_flags() 95 (ext_obj->arch_mmu_flags & ARCH_MMU_FLAG_PERM_RO)) { in ext_mem_obj_check_flags() 97 *arch_mmu_flags, ext_obj->arch_mmu_flags); in ext_mem_obj_check_flags() 101 if (!(*arch_mmu_flags & ARCH_MMU_FLAG_PERM_NO_EXECUTE) && in ext_mem_obj_check_flags() 102 (ext_obj->arch_mmu_flags & ARCH_MMU_FLAG_PERM_NO_EXECUTE)) { in ext_mem_obj_check_flags() 104 *arch_mmu_flags, ext_obj->arch_mmu_flags); in ext_mem_obj_check_flags() [all …]
|
/trusty/kernel/lib/trusty/ |
D | util.c | 58 uint* arch_mmu_flags) { in xlat_flags() argument 67 *arch_mmu_flags |= ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_NO_EXECUTE; in xlat_flags() 70 *arch_mmu_flags |= ARCH_MMU_FLAG_PERM_RO; in xlat_flags() 74 *arch_mmu_flags |= ARCH_MMU_FLAG_TAGGED; in xlat_flags()
|
D | memref.c | 79 uint arch_mmu_flags = 0; in memref_mmap() local 101 rc = xlat_flags(memref->mmap_prot, mmap_prot, &arch_mmu_flags); in memref_mmap() 114 arch_mmu_flags); in memref_mmap() 150 uint arch_mmu_flags = 0; in check_slice() local 151 status_t rc = xlat_flags(mmap_prot, mmap_prot, &arch_mmu_flags); in check_slice() 156 rc = slice->obj->ops->check_flags(slice->obj, &arch_mmu_flags); in check_slice()
|
D | util.h | 34 uint* arch_mmu_flags);
|
D | trusty_app.c | 907 mmio_arch_mmu_flags = manifest_entry.value.mem_map.arch_mmu_flags; in load_app_config_options() 937 if (manifest_entry.value.mem_map.arch_mmu_flags & in load_app_config_options() 939 ((manifest_entry.value.mem_map.arch_mmu_flags & in load_app_config_options() 941 (manifest_entry.value.mem_map.arch_mmu_flags & in load_app_config_options() 943 (manifest_entry.value.mem_map.arch_mmu_flags & in load_app_config_options() 948 manifest_entry.value.mem_map.arch_mmu_flags, in load_app_config_options() 1321 uint arch_mmu_flags = ARCH_MMU_FLAG_PERM_USER; in alloc_address_map() local 1323 arch_mmu_flags += ARCH_MMU_FLAG_PERM_NO_EXECUTE; in alloc_address_map() 1341 arch_mmu_flags); in alloc_address_map() 1399 arch_mmu_flags += ARCH_MMU_FLAG_PERM_RO; in alloc_address_map() [all …]
|
D | tipc_virtio_dev.c | 193 static int tipc_ext_mem_check_flags(struct vmm_obj* obj, uint* arch_mmu_flags) { in tipc_ext_mem_check_flags() argument 195 return tem->ext_mem->ops->check_flags(tem->ext_mem, arch_mmu_flags); in tipc_ext_mem_check_flags()
|
/trusty/kernel/lib/sm/ |
D | shared_mem.c | 82 uint arch_mmu_flags; in sm_mem_compat_get_vmm_obj() local 84 ret = sm_decode_ns_memory_attr(&pinf, &ns_paddr, &arch_mmu_flags); in sm_mem_compat_get_vmm_obj() 104 arch_mmu_flags |= ARCH_MMU_FLAG_NS | ARCH_MMU_FLAG_PERM_NO_EXECUTE; in sm_mem_compat_get_vmm_obj() 106 arch_mmu_flags, 1); in sm_mem_compat_get_vmm_obj() 157 uint arch_mmu_flags, in sm_mem_alloc_obj() argument 165 &sm_mem_obj_ops, arch_mmu_flags, page_run_count); in sm_mem_alloc_obj() 191 uint arch_mmu_flags; in sm_mem_get_vmm_obj() local 204 &address_range_count, &arch_mmu_flags, in sm_mem_get_vmm_obj() 212 arch_mmu_flags, &tmp_obj_ref); in sm_mem_get_vmm_obj()
|
/trusty/kernel/lib/extmem/include/lib/extmem/ |
D | extmem.h | 83 uint arch_mmu_flags; member 120 uint arch_mmu_flags, 182 int ext_mem_obj_check_flags(struct vmm_obj* obj, uint* arch_mmu_flags); 228 uint arch_mmu_flags);
|
/trusty/kernel/lib/arm_ffa/include/lib/arm_ffa/ |
D | arm_ffa.h | 99 uint* arch_mmu_flags,
|
/trusty/kernel/app/mmutest/ |
D | mmutest.c | 93 static int mmutest_alloc(void** ptrp, uint arch_mmu_flags) { in mmutest_alloc() argument 99 arch_mmu_flags); in mmutest_alloc() 108 EXPECT_EQ(arch_mmu_flags_query, arch_mmu_flags, in mmutest_alloc() 110 arch_mmu_flags_query, arch_mmu_flags); in mmutest_alloc() 114 static int mmutest_vmm_store_uint32(uint arch_mmu_flags, bool user) { in mmutest_vmm_store_uint32() argument 118 ret = mmutest_alloc(&ptr, arch_mmu_flags); in mmutest_vmm_store_uint32() 129 static int mmutest_vmm_store_uint32_kernel(uint arch_mmu_flags) { in mmutest_vmm_store_uint32_kernel() argument 130 return mmutest_vmm_store_uint32(arch_mmu_flags, false); in mmutest_vmm_store_uint32_kernel() 133 static int mmutest_vmm_store_uint32_user(uint arch_mmu_flags) { in mmutest_vmm_store_uint32_user() argument 134 return mmutest_vmm_store_uint32(arch_mmu_flags, true); in mmutest_vmm_store_uint32_user() [all …]
|
/trusty/kernel/lib/app_manifest/include/lib/app_manifest/ |
D | app_manifest.h | 136 uint32_t arch_mmu_flags; member
|
/trusty/user/base/tools/ |
D | manifest_compiler.py | 779 arch_mmu_flags = 0 782 arch_mmu_flags |= ARCH_MMU_FLAG_CACHED 784 arch_mmu_flags |= ARCH_MMU_FLAG_UNCACHED 786 arch_mmu_flags |= ARCH_MMU_FLAG_UNCACHED_DEVICE 789 arch_mmu_flags |= ARCH_MMU_FLAG_NS 791 return arch_mmu_flags 988 (arch_mmu_flags,), packed_data = struct.unpack( 997 }[arch_mmu_flags & ARCH_MMU_FLAG_CACHE_MASK] 998 mem_map_entry[MEM_MAP_NON_SECURE] = bool(arch_mmu_flags &
|
/trusty/kernel/lib/arm_ffa/ |
D | arm_ffa.c | 563 uint* arch_mmu_flags, in arm_ffa_mem_retrieve_start() argument 699 if (arch_mmu_flags) { in arm_ffa_mem_retrieve_start() 700 *arch_mmu_flags = arch_mmu_flags_out; in arm_ffa_mem_retrieve_start()
|
/trusty/kernel/lib/app_manifest/ |
D | app_manifest.c | 192 entry->value.mem_map.arch_mmu_flags = app_manifest_read_entry(iterator); in app_manifest_iterator_next()
|