/aosp_15_r20/external/trusty/lk/arch/arm/arm/ |
D | mmu.c | 78 switch (flags & (ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_RO)) { in mmu_flags_to_l1_arch_flags() 82 case ARCH_MMU_FLAG_PERM_RO: in mmu_flags_to_l1_arch_flags() 88 case ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_RO: in mmu_flags_to_l1_arch_flags() 130 switch (flags & (ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_RO)) { in mmu_flags_to_l2_arch_flags_small_page() 134 case ARCH_MMU_FLAG_PERM_RO: in mmu_flags_to_l2_arch_flags_small_page() 140 case ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_RO: in mmu_flags_to_l2_arch_flags_small_page() 336 *flags |= ARCH_MMU_FLAG_PERM_RO; in arch_mmu_query() 341 *flags |= ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_RO; in arch_mmu_query() 387 *flags |= ARCH_MMU_FLAG_PERM_RO; in arch_mmu_query() 392 *flags |= ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_RO; in arch_mmu_query()
|
/aosp_15_r20/external/trusty/lk/kernel/vm/ |
D | physmem.c | 60 ARCH_MMU_FLAG_PERM_RO | in phys_mem_obj_dynamic_initialize() 93 if (!(*arch_mmu_flags & ARCH_MMU_FLAG_PERM_RO) && in phys_mem_obj_check_flags() 94 (phys_obj->arch_mmu_flags & ARCH_MMU_FLAG_PERM_RO)) { in phys_mem_obj_check_flags()
|
D | vm.c | 179 flags |= ARCH_MMU_FLAG_PERM_RO; in vm_map_initial_mappings() 182 flags |= ARCH_MMU_FLAG_PERM_RO; in vm_map_initial_mappings()
|
D | vmm.c | 1354 if (arch_mmu_flags & ARCH_MMU_FLAG_PERM_RO) { in vmm_alloc_no_physical()
|
/aosp_15_r20/external/trusty/lk/arch/arm64/ |
D | mmu.c | 84 if ((flags & (ARCH_MMU_FLAG_PERM_RO | ARCH_MMU_FLAG_PERM_NO_EXECUTE)) == 0) { in mmu_flags_to_pte_attr() 116 switch (flags & (ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_RO)) { in mmu_flags_to_pte_attr() 120 case ARCH_MMU_FLAG_PERM_RO: in mmu_flags_to_pte_attr() 126 case ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_RO: in mmu_flags_to_pte_attr() 262 mmu_flags |= ARCH_MMU_FLAG_PERM_RO; in arch_mmu_query() 265 mmu_flags |= ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_RO; in arch_mmu_query()
|
D | mmu.inc | 84 if ((flags & (ARCH_MMU_FLAG_PERM_RO | ARCH_MMU_FLAG_PERM_NO_EXECUTE)) == 0) { 116 switch (flags & (ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_RO)) { 120 case ARCH_MMU_FLAG_PERM_RO: 126 case ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_RO: 262 mmu_flags |= ARCH_MMU_FLAG_PERM_RO; 265 mmu_flags |= ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_RO;
|
D | exceptions_c.c | 127 !(flags & ARCH_MMU_FLAG_PERM_RO) ? " write" : "", in printmemattrs()
|
/aosp_15_r20/trusty/kernel/platform/generic-x86_64/rust/src/ |
H A D | lib.rs | 33 mmu::{ARCH_MMU_FLAG_CACHED, ARCH_MMU_FLAG_PERM_NO_EXECUTE, ARCH_MMU_FLAG_PERM_RO, PAGE_SIZE}, 68 ARCH_MMU_FLAG_CACHED | ARCH_MMU_FLAG_PERM_RO | ARCH_MMU_FLAG_PERM_NO_EXECUTE, in map_physical_region()
|
/aosp_15_r20/trusty/kernel/lib/extmem/ |
H A D | external_memory.c | 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()
|
/aosp_15_r20/trusty/kernel/app/mmutest/ |
H A D | mmutest.c | 777 ARCH_MMU_FLAG_CACHED | ARCH_MMU_FLAG_PERM_RO)); in TEST() 780 ARCH_MMU_FLAG_PERM_RO | in TEST() 801 ARCH_MMU_FLAG_PERM_RO)); in TEST() 803 ARCH_MMU_FLAG_CACHED | ARCH_MMU_FLAG_PERM_RO | in TEST() 827 EXPECT_EQ(NO_ERROR, mmu_test_execute(ARCH_MMU_FLAG_PERM_RO)); in TEST()
|
/aosp_15_r20/external/trusty/lk/arch/x86/64/ |
D | mmu.c | 213 if (!(flags & ARCH_MMU_FLAG_PERM_RO)) in get_x86_arch_flags() 240 unsupported_flags &= ~ARCH_MMU_FLAG_PERM_RO; in x86_mmu_check_flags() 259 mmu_flags |= ARCH_MMU_FLAG_PERM_RO; in get_arch_mmu_flags()
|
D | usercopy.c | 54 if (copy_to && (flags & ARCH_MMU_FLAG_PERM_RO)) { in is_permission_legal()
|
/aosp_15_r20/external/trusty/lk/lib/rust_support/ |
D | mmu.rs | 29 pub use crate::sys::ARCH_MMU_FLAG_PERM_RO;
|
/aosp_15_r20/trusty/kernel/lib/trusty/ |
H A D | util.c | 70 *arch_mmu_flags |= ARCH_MMU_FLAG_PERM_RO; in xlat_flags()
|
H A D | trusty_app.c | 1401 arch_mmu_flags += ARCH_MMU_FLAG_PERM_RO; in alloc_address_map() 1426 arch_mmu_flags & ARCH_MMU_FLAG_PERM_RO ? '-' : 'w', in alloc_address_map()
|
H A D | tipc_virtio_dev.c | 754 uint map_flags = ARCH_MMU_FLAG_PERM_NO_EXECUTE | ARCH_MMU_FLAG_PERM_RO; in handle_rx_msg()
|
/aosp_15_r20/external/trusty/lk/include/arch/ |
D | mmu.h | 40 #define ARCH_MMU_FLAG_PERM_RO (1U<<3) macro
|
/aosp_15_r20/external/trusty/lk/arch/x86/32/ |
D | mmu.c | 115 if (!(flags & ARCH_MMU_FLAG_PERM_RO)) in get_x86_arch_flags() 139 mmu_flags |= ARCH_MMU_FLAG_PERM_RO; in get_arch_mmu_flags()
|
/aosp_15_r20/trusty/kernel/lib/sm/ |
H A D | ns_mem.c | 154 mmu_flags |= ARCH_MMU_FLAG_PERM_RO; in sm_decode_ns_memory_attr()
|
/aosp_15_r20/trusty/kernel/services/apploader/ |
H A D | apploader_service.c | 235 ARCH_MMU_FLAG_PERM_NO_EXECUTE | ARCH_MMU_FLAG_PERM_RO); in apploader_service_handle_cmd_load_application()
|
/aosp_15_r20/trusty/kernel/app/usercopytest/ |
H A D | usercopytest.c | 53 #define FLAGS_RO_USER (ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_RO)
|
/aosp_15_r20/trusty/kernel/lib/arm_ffa/ |
H A D | arm_ffa.c | 802 arch_mmu_flags_out |= ARCH_MMU_FLAG_PERM_RO; in arm_ffa_mem_retrieve_start()
|