Searched refs:virt_addr (Results 1 – 5 of 5) sorted by relevance
/DragonOS-0.1.2/kernel/src/mm/ |
D | utils.c | 57 bool mm_check_mapped(ul page_table_phys_addr, uint64_t virt_addr) in mm_check_mapped() argument 61 …tmp = phys_2_virt((ul *)((ul)page_table_phys_addr & (~0xfffUL)) + ((virt_addr >> PAGE_GDT_SHIFT) &… in mm_check_mapped() 67 tmp = phys_2_virt((ul *)(*tmp & (~0xfffUL)) + ((virt_addr >> PAGE_1G_SHIFT) & 0x1ff)); in mm_check_mapped() 74 tmp = phys_2_virt(((ul *)(*tmp & (~0xfffUL)) + (((ul)(virt_addr) >> PAGE_2M_SHIFT) & 0x1ff))); in mm_check_mapped() 88 … tmp = phys_2_virt(((ul *)(*tmp & (~0xfffUL)) + (((ul)(virt_addr) >> PAGE_4K_SHIFT) & 0x1ff))); in mm_check_mapped()
|
D | mmap.c | 105 ul *virt_addr = kmalloc(PAGE_4K_SIZE, 0); in mm_map_proc_page_table() local 106 memset(virt_addr, 0, PAGE_4K_SIZE); in mm_map_proc_page_table() 107 … set_pml4t(pml4e_ptr, mk_pml4t(virt_2_phys(virt_addr), (user ? PAGE_USER_PGT : PAGE_KERNEL_PGT))); in mm_map_proc_page_table() 122 ul *virt_addr = kmalloc(PAGE_4K_SIZE, 0); in mm_map_proc_page_table() local 123 memset(virt_addr, 0, PAGE_4K_SIZE); in mm_map_proc_page_table() 124 … set_pdpt(pdpte_ptr, mk_pdpt(virt_2_phys(virt_addr), (user ? PAGE_USER_DIR : PAGE_KERNEL_DIR))); in mm_map_proc_page_table()
|
D | mm.h | 442 #define mm_unmap_addr(virt_addr, length) ({ mm_unmap_proc_table((uint64_t)get_CR3(), true, virt_add… argument 544 bool mm_check_mapped(ul page_table_phys_addr, uint64_t virt_addr);
|
D | mm.c | 28 uint64_t mm_get_PDE(ul proc_page_table_addr, bool is_phys, ul virt_addr, bool clear); 530 uint64_t mm_get_PDE(ul proc_page_table_addr, bool is_phys, ul virt_addr, bool clear) in mm_get_PDE() argument 534 …tmp = phys_2_virt((ul *)((ul)proc_page_table_addr & (~0xfffUL)) + ((virt_addr >> PAGE_GDT_SHIFT) &… in mm_get_PDE() 536 … tmp = (ul *)((ul)proc_page_table_addr & (~0xfffUL)) + ((virt_addr >> PAGE_GDT_SHIFT) & 0x1ff); in mm_get_PDE() 542 tmp = phys_2_virt((ul *)(*tmp & (~0xfffUL)) + ((virt_addr >> PAGE_1G_SHIFT) & 0x1ff)); in mm_get_PDE() 549 tmp = phys_2_virt(((ul *)(*tmp & (~0xfffUL)) + (((ul)(virt_addr) >> PAGE_2M_SHIFT) & 0x1ff))); in mm_get_PDE()
|
/DragonOS-0.1.2/docs/kernel/core_api/ |
D | mm-api.md | 227 ### `mm_unmap_addr(virt_addr, length)` 235 **virt_addr**
|