syscalls: stop freezing on brk syscall where ebx < current brk
This commit is contained in:
@@ -623,7 +623,8 @@ uint32_t sys_brk(TrapFrame *tf)
|
|||||||
if(tf->ebx < (uint32_t)current->brk)
|
if(tf->ebx < (uint32_t)current->brk)
|
||||||
{
|
{
|
||||||
debug_log("PIZDETS!!!! new brk less than current brk\n");
|
debug_log("PIZDETS!!!! new brk less than current brk\n");
|
||||||
while(1){}
|
return (uint32_t)current->brk;
|
||||||
|
//while(1){}
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t old_brk_page = DivRoundUp((uint32_t)current->brk, 0x1000);
|
uint32_t old_brk_page = DivRoundUp((uint32_t)current->brk, 0x1000);
|
||||||
|
|||||||
Reference in New Issue
Block a user