Home
last modified time | relevance | path

Searched refs:brk_end (Results 1 – 4 of 4) sorted by relevance

/DragonOS-0.1.3/kernel/src/syscall/
Dsyscall.c314 return current_pcb->mm->brk_end; in sys_brk()
320 if (new_brk >= current_pcb->mm->brk_end) in sys_brk()
321 offset = (int64_t)(new_brk - current_pcb->mm->brk_end); in sys_brk()
323 offset = -(int64_t)(current_pcb->mm->brk_end - new_brk); in sys_brk()
325 new_brk = mm_do_brk(current_pcb->mm->brk_end, offset); // 扩展堆内存空间 in sys_brk()
327 current_pcb->mm->brk_end = new_brk; in sys_brk()
339 uint64_t retval = current_pcb->mm->brk_end; in sys_sbrk()
352 … if ((__int128_t)current_pcb->mm->brk_end + (__int128_t)regs->r8 < current_pcb->mm->brk_start) in sys_sbrk()
356 uint64_t new_brk = mm_do_brk(current_pcb->mm->brk_end, (int64_t)regs->r8); // 调整堆内存空间 in sys_sbrk()
358 current_pcb->mm->brk_end = new_brk; in sys_sbrk()
/DragonOS-0.1.3/kernel/src/mm/
Dmm-types.h155 uint64_t brk_start, brk_end; member
Dmm.c247 initial_mm.brk_end = current_pcb->addr_limit; in mm_init()
645 current_pcb->mm->brk_end = end_addr; in mm_do_brk()
/DragonOS-0.1.3/kernel/src/process/
Dprocess.c407 current_pcb->mm->brk_end = brk_start_addr; in do_execve()