/* Arch-specific wrapper function for memory mapping at run-time Maps memory according to the parameters provided by the caller at run-time. This function wraps the ARMv7 MMU specific implementation #__arch_mem_map() for the upper layers of the memory management. If the map operation fails, a kernel panic will be triggered.  */
void arch_mem_map(void *virt, uintptr_t phys, size_t size, uint32_t flags)
/* Arch-specific wrapper function for memory mapping at run-time Maps memory according to the parameters provided by the caller at run-time. This function wraps the ARMv7 MMU specific implementation #__arch_mem_map() for the upper layers of the memory management. If the map operation fails, a kernel panic will be triggered.  */
void arch_mem_map(void *virt, uintptr_t phys, size_t size, uint32_t flags)
{
	int ret = __arch_mem_map(virt, phys, size, flags);
	if (ret) {
		LOG_ERR("__arch_mem_map() returned %d", ret);
		k_panic();
	} else {
		invalidate_tlb_all();
	}
}