/Zephyr-Core-2.7.6/kernel/include/ |
D | mmu.h | 51 #define Z_BOOT_PHYS_TO_VIRT(phys) ((uint8_t *)(((uintptr_t)phys) + Z_VM_OFFSET)) argument 158 static inline void z_assert_phys_aligned(uintptr_t phys) in z_assert_phys_aligned() argument 160 __ASSERT(phys % CONFIG_MMU_PAGE_SIZE == 0U, in z_assert_phys_aligned() 161 "physical address 0x%lx is not page-aligned", phys); in z_assert_phys_aligned() 162 (void)phys; in z_assert_phys_aligned() 179 static inline bool z_is_page_frame(uintptr_t phys) in z_is_page_frame() argument 181 z_assert_phys_aligned(phys); in z_is_page_frame() 182 return (phys >= Z_PHYS_RAM_START) && (phys < Z_PHYS_RAM_END); in z_is_page_frame() 185 static inline struct z_page_frame *z_phys_to_page_frame(uintptr_t phys) in z_phys_to_page_frame() argument 187 __ASSERT(z_is_page_frame(phys), in z_phys_to_page_frame() [all …]
|
D | kernel_arch_interface.h | 285 void arch_mem_map(void *virt, uintptr_t phys, size_t size, uint32_t flags); 336 int arch_page_phys_get(void *virt, uintptr_t *phys); 391 void arch_mem_page_in(void *addr, uintptr_t phys); 407 void arch_mem_scratch(uintptr_t phys);
|
/Zephyr-Core-2.7.6/include/sys/ |
D | mem_manage.h | 68 #define Z_MEM_VIRT_ADDR(phys) ((phys) + Z_MEM_VM_OFFSET) argument 150 static inline void *z_mem_virt_addr(uintptr_t phys) in z_mem_virt_addr() argument 152 __ASSERT((phys >= CONFIG_SRAM_BASE_ADDRESS) && in z_mem_virt_addr() 153 (phys < (CONFIG_SRAM_BASE_ADDRESS + in z_mem_virt_addr() 155 "physical address 0x%lx not in RAM", (unsigned long)phys); in z_mem_virt_addr() 161 return (void *)Z_MEM_VIRT_ADDR(phys); in z_mem_virt_addr() 209 void z_phys_map(uint8_t **virt_ptr, uintptr_t phys, size_t size,
|
/Zephyr-Core-2.7.6/kernel/ |
D | mmu.c | 382 static int virt_to_page_frame(void *virt, uintptr_t *phys) in virt_to_page_frame() argument 392 *phys = z_page_frame_to_phys(pf); in virt_to_page_frame() 422 uintptr_t phys; in map_anon_page() local 450 phys = z_page_frame_to_phys(pf); in map_anon_page() 451 arch_mem_map(addr, phys, CONFIG_MMU_PAGE_SIZE, flags | K_MEM_CACHE_WB); in map_anon_page() 458 LOG_DBG("memory mapping anon page %p -> 0x%lx", addr, phys); in map_anon_page() 530 uintptr_t phys; in k_mem_unmap() local 570 ret = arch_page_phys_get(pos, &phys); in k_mem_unmap() 580 __ASSERT(z_is_page_frame(phys), in k_mem_unmap() 581 "%s: 0x%lx is not a page frame", __func__, phys); in k_mem_unmap() [all …]
|
/Zephyr-Core-2.7.6/subsys/demand_paging/eviction/ |
D | nru.c | 27 uintptr_t phys; in nru_periodic_update() local 31 Z_PAGE_FRAME_FOREACH(phys, pf) { in nru_periodic_update() 50 uintptr_t flags, phys; in k_mem_paging_eviction_select() local 52 Z_PAGE_FRAME_FOREACH(phys, pf) { in k_mem_paging_eviction_select()
|
/Zephyr-Core-2.7.6/arch/x86/include/ |
D | x86_mmu.h | 158 static inline void z_x86_cr3_set(uintptr_t phys) in z_x86_kpti_is_access_ok() 160 __ASSERT((phys & PTABLES_ALIGN) == 0U, "unaligned page tables"); in z_x86_kpti_is_access_ok() 162 __asm__ volatile("movq %0, %%cr3\n\t" : : "r" (phys) : "memory"); in z_x86_kpti_is_access_ok() 164 __asm__ volatile("movl %0, %%cr3\n\t" : : "r" (phys) : "memory"); in z_x86_kpti_is_access_ok()
|
/Zephyr-Core-2.7.6/arch/x86/core/ |
D | x86_mmu.c | 540 uintptr_t phys = get_entry_phys(entry, level); in print_entries() local 546 if (phys == virt) { in print_entries() 549 } else if (phys + Z_MEM_VM_OFFSET == virt) { in print_entries() 570 phys = get_entry_phys(entry, level); in print_entries() 571 if (phys == virt) { in print_entries() 1017 static void range_map_ptables(pentry_t *ptables, void *virt, uintptr_t phys, in range_map_ptables() argument 1023 assert_addr_aligned(phys); in range_map_ptables() 1041 entry_val = (pentry_t)(phys + offset) | entry_flags; in range_map_ptables() 1072 static void range_map(void *virt, uintptr_t phys, size_t size, in range_map() argument 1076 PRI_ENTRY " opt 0x%x", __func__, (void *)phys, virt, size, in range_map() [all …]
|
/Zephyr-Core-2.7.6/arch/arm64/core/ |
D | mmu.c | 578 uintptr_t phys, uintptr_t virt, size_t size, uint32_t attrs) in __add_map() argument 584 name, virt, phys, size, desc); in __add_map() 585 __ASSERT(((virt | phys | size) & (CONFIG_MMU_PAGE_SIZE - 1)) == 0, in __add_map() 587 desc |= phys; in __add_map() 592 uintptr_t phys, uintptr_t virt, size_t size, uint32_t attrs) in add_map() argument 598 ret = __add_map(ptables, name, phys, virt, size, attrs); in add_map() 840 static int __arch_mem_map(void *virt, uintptr_t phys, size_t size, uint32_t flags) in __arch_mem_map() argument 883 return add_map(ptables, "generic", phys, (uintptr_t)virt, size, entry_flags); in __arch_mem_map() 886 void arch_mem_map(void *virt, uintptr_t phys, size_t size, uint32_t flags) in arch_mem_map() argument 888 int ret = __arch_mem_map(virt, phys, size, flags); in arch_mem_map() [all …]
|
/Zephyr-Core-2.7.6/boards/arm/arty/support/ |
D | openocd_arty_a7_arm_designstart.cfg | 6 $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0
|
/Zephyr-Core-2.7.6/dts/arm/st/l4/ |
D | stm32l475.dtsi | 19 phys = <&otgfs_phy>;
|
D | stm32l412.dtsi | 19 phys = <&usb_fs_phy>;
|
D | stm32l432.dtsi | 65 phys = <&usb_fs_phy>;
|
/Zephyr-Core-2.7.6/dts/arm/st/l0/ |
D | stm32l053.dtsi | 19 phys = <&otgfs_phy>;
|
D | stm32l072.dtsi | 23 phys = <&otgfs_phy>;
|
/Zephyr-Core-2.7.6/dts/arm/st/f7/ |
D | stm32f723.dtsi | 31 phys = <&usbphyc>;
|
/Zephyr-Core-2.7.6/dts/arm/st/f0/ |
D | stm32f070.dtsi | 35 phys = <&usb_fs_phy>;
|
D | stm32f072.dtsi | 65 phys = <&usb_fs_phy>;
|
/Zephyr-Core-2.7.6/boards/riscv/hifive_unleashed/support/ |
D | openocd_hifive_unleashed.cfg | 20 $_TARGETNAME.0 configure -work-area-phys 0x80000000 -work-area-size 0x4000 -work-area-backup 1
|
/Zephyr-Core-2.7.6/boards/riscv/hifive_unmatched/support/ |
D | openocd_hifive_unleashed.cfg | 20 $_TARGETNAME.0 configure -work-area-phys 0x80000000 -work-area-size 0x4000 -work-area-backup 1
|
/Zephyr-Core-2.7.6/boards/arm/v2m_beetle/support/ |
D | openocd.cfg | 33 $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size 0x1000 -work-area-backup 0
|
/Zephyr-Core-2.7.6/dts/arm/st/f1/ |
D | stm32f103X8.dtsi | 47 phys = <&usb_fs_phy>;
|
/Zephyr-Core-2.7.6/dts/arm/st/h7/ |
D | stm32h743.dtsi | 31 phys = <&otghs_fs_phy>;
|
/Zephyr-Core-2.7.6/dts/arm/st/g0/ |
D | stm32g0b0.dtsi | 105 phys = <&usb_fs_phy>;
|
D | stm32g0b1.dtsi | 116 phys = <&usb_fs_phy>;
|
/Zephyr-Core-2.7.6/boards/riscv/rv32m1_vega/support/ |
D | openocd_rv32m1_vega_zero_riscy.cfg | 41 $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0
|