Home
last modified time | relevance | path

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

/DragonOS-0.1.5/kernel/src/libs/libUI/
Dscreen_manager.c47 …struct Page *p = alloc_pages(ZONE_NORMAL, PAGE_2M_ALIGN(video_frame_buffer_info.size) / PAGE_2M_SI… in __create_buffer()
77 …free_pages(Phy_to_2M_Page(virt_2_phys(buf->vaddr)), PAGE_2M_ALIGN(video_frame_buffer_info.size) / … in __destroy_buffer()
/DragonOS-0.1.5/kernel/src/syscall/
Dsyscall.c189 uint64_t new_brk = PAGE_2M_ALIGN(regs->r8); in sys_brk()
231 uint64_t new_brk = PAGE_2M_ALIGN(retval + regs->r8); in sys_sbrk()
/DragonOS-0.1.5/kernel/src/mm/
Dmm.c90 ul addr_start = PAGE_2M_ALIGN(memory_management_struct.e820[i].BaseAddr); in mm_init()
143 ul addr_start = PAGE_2M_ALIGN(memory_management_struct.e820[i].BaseAddr); in mm_init()
635 uint64_t end_addr = PAGE_2M_ALIGN(old_brk_end_addr + offset); in mm_do_brk()
666 …uint64_t)phys_2_virt((uint64_t)current_pcb->mm->pgd), false, end_addr, PAGE_2M_ALIGN(ABS(offset))); in mm_do_brk()
Dmm.h37 #define PAGE_2M_ALIGN(addr) (((unsigned long)(addr) + PAGE_2M_SIZE - 1) & PAGE_2M_MASK) macro
Dmmap.c401 len_4k = PAGE_2M_ALIGN(vma->vm_start + offset) - (vma->vm_start + offset); in mm_map_vma()
Dslab.c390 for (int i = PAGE_2M_ALIGN(virt_2_phys(tmp_addr)) >> PAGE_2M_SHIFT; i <= tmp_page_mms_end; ++i) in slab_init()
/DragonOS-0.1.5/user/libs/libc/src/
Dmalloc.c24 #define PAGE_2M_ALIGN(addr) (((unsigned long)(addr) + PAGE_2M_SIZE - 1) & PAGE_2M_MASK) macro
/DragonOS-0.1.5/kernel/src/process/
Dfork.c232 int page_to_alloc = (PAGE_2M_ALIGN(vma_size)) >> PAGE_2M_SHIFT; in process_copy_mm()