Home
last modified time | relevance | path

Searched refs:ARCH_MMU_FLAG_PERM_RO (Results 1 – 22 of 22) sorted by relevance

/aosp_15_r20/external/trusty/lk/arch/arm/arm/
Dmmu.c78 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/
Dphysmem.c60 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()
Dvm.c179 flags |= ARCH_MMU_FLAG_PERM_RO; in vm_map_initial_mappings()
182 flags |= ARCH_MMU_FLAG_PERM_RO; in vm_map_initial_mappings()
Dvmm.c1354 if (arch_mmu_flags & ARCH_MMU_FLAG_PERM_RO) { in vmm_alloc_no_physical()
/aosp_15_r20/external/trusty/lk/arch/arm64/
Dmmu.c84 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()
Dmmu.inc84 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;
Dexceptions_c.c127 !(flags & ARCH_MMU_FLAG_PERM_RO) ? " write" : "", in printmemattrs()
/aosp_15_r20/trusty/kernel/platform/generic-x86_64/rust/src/
H A Dlib.rs33 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 Dexternal_memory.c94 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 Dmmutest.c777 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/
Dmmu.c213 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()
Dusercopy.c54 if (copy_to && (flags & ARCH_MMU_FLAG_PERM_RO)) { in is_permission_legal()
/aosp_15_r20/external/trusty/lk/lib/rust_support/
Dmmu.rs29 pub use crate::sys::ARCH_MMU_FLAG_PERM_RO;
/aosp_15_r20/trusty/kernel/lib/trusty/
H A Dutil.c70 *arch_mmu_flags |= ARCH_MMU_FLAG_PERM_RO; in xlat_flags()
H A Dtrusty_app.c1401 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 Dtipc_virtio_dev.c754 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/
Dmmu.h40 #define ARCH_MMU_FLAG_PERM_RO (1U<<3) macro
/aosp_15_r20/external/trusty/lk/arch/x86/32/
Dmmu.c115 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 Dns_mem.c154 mmu_flags |= ARCH_MMU_FLAG_PERM_RO; in sm_decode_ns_memory_attr()
/aosp_15_r20/trusty/kernel/services/apploader/
H A Dapploader_service.c235 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 Dusercopytest.c53 #define FLAGS_RO_USER (ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_RO)
/aosp_15_r20/trusty/kernel/lib/arm_ffa/
H A Darm_ffa.c802 arch_mmu_flags_out |= ARCH_MMU_FLAG_PERM_RO; in arm_ffa_mem_retrieve_start()