Home
last modified time | relevance | path

Searched refs:ARCH_MMU_FLAG_PERM_USER (Results 1 – 8 of 8) sorted by relevance

/arch/test/
A Dmmu.cpp61 err = arch_mmu_map(&as, va, vm_page_to_paddr(p), 1, ARCH_MMU_FLAG_PERM_USER); in map_user_pages()
74 EXPECT_EQ(ARCH_MMU_FLAG_PERM_USER, flags, "flags"); in map_user_pages()
152 EXPECT_TRUE(map_region_query_result(kaspace, ARCH_MMU_FLAG_PERM_USER), "4"); in map_query_pages()
153 …EXPECT_TRUE(map_region_query_result(kaspace, ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_RO), "5"… in map_query_pages()
155 …EXPECT_TRUE(map_region_query_result(kaspace, ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_NO_EXECU… in map_query_pages()
156 …EXPECT_TRUE(map_region_query_result(kaspace, ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_RO | ARC… in map_query_pages()
158 …EXPECT_TRUE(map_region_expect_failure(kaspace, ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_NO_EXE… in map_query_pages()
159 …EXPECT_TRUE(map_region_expect_failure(kaspace, ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_RO | A… in map_query_pages()
187 err = arch_mmu_map(&as, USER_ASPACE_BASE, vm_page_to_paddr(p), 1, ARCH_MMU_FLAG_PERM_USER); in context_switch()
/arch/arm/arm/
A Dmmu.c60 switch (flags & (ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_RO)) { in mmu_flags_to_l1_arch_flags()
67 case ARCH_MMU_FLAG_PERM_USER: in mmu_flags_to_l1_arch_flags()
70 case ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_RO: in mmu_flags_to_l1_arch_flags()
111 switch (flags & (ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_RO)) { in mmu_flags_to_l2_arch_flags_small_page()
118 case ARCH_MMU_FLAG_PERM_USER: in mmu_flags_to_l2_arch_flags_small_page()
121 case ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_RO: in mmu_flags_to_l2_arch_flags_small_page()
279 *flags |= ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_RO; in arch_mmu_query()
282 *flags |= ARCH_MMU_FLAG_PERM_USER; in arch_mmu_query()
330 *flags |= ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_RO; in arch_mmu_query()
333 *flags |= ARCH_MMU_FLAG_PERM_USER; in arch_mmu_query()
/arch/include/arch/
A Dmmu.h28 #define ARCH_MMU_FLAG_PERM_USER (1U<<2) macro
/arch/arm64/
A Dmmu.c61 switch (flags & (ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_RO)) { in mmu_flags_to_pte_attr()
68 case ARCH_MMU_FLAG_PERM_USER: in mmu_flags_to_pte_attr()
71 case ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_RO: in mmu_flags_to_pte_attr()
80 if (flags & ARCH_MMU_FLAG_PERM_USER) { in mmu_flags_to_pte_attr()
184 *flags |= ARCH_MMU_FLAG_PERM_USER; in arch_mmu_query()
190 *flags |= ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_RO; in arch_mmu_query()
196 if (*flags & ARCH_MMU_FLAG_PERM_USER) { in arch_mmu_query()
/arch/or1k/
A Dmmu.c93 *flags |= ARCH_MMU_FLAG_PERM_USER; in arch_mmu_query()
144 if (flags & ARCH_MMU_FLAG_PERM_USER) in arch_mmu_map()
/arch/x86/32/
A Dmmu.c69 if (flags & ARCH_MMU_FLAG_PERM_USER) in get_x86_arch_flags()
88 mmu_flags |= ARCH_MMU_FLAG_PERM_USER; in get_arch_mmu_flags()
/arch/riscv/
A Dmmu.cpp176 pte |= (flags & ARCH_MMU_FLAG_PERM_USER) ? RISCV_PTE_U : 0; in mmu_flags_to_pte()
189 f |= (pte & RISCV_PTE_U) ? ARCH_MMU_FLAG_PERM_USER : 0; in pte_flags_to_mmu_flags()
/arch/x86/64/
A Dmmu.c159 if (flags & ARCH_MMU_FLAG_PERM_USER) in get_x86_arch_flags()
181 mmu_flags |= ARCH_MMU_FLAG_PERM_USER; in get_arch_mmu_flags()

Completed in 19 milliseconds