mirror of
https://github.com/mii443/qemu.git
synced 2025-12-03 11:08:25 +00:00
bsd-user: Implement do_obreak function
Match linux-user, by manually applying the following commits, in order:d28b3c90cflinux-user: Make sure initial brk(0) is page-aligned15ad98536alinux-user: Fix qemu brk() to not zero bytes on current pagedfe49864aflinux-user: Prohibit brk() to to shrink below initial heap addresseac78a4b0blinux-user: Fix signed math overflow in brk() syscallc6cc059ecalinux-user: Do not call get_errno() in do_brk()e69e032d1alinux-user: Use MAP_FIXED_NOREPLACE for do_brk()cb9d5d1fdalinux-user: Do nothing if too small brk is specified2aea137a42linux-user: Do not align brk with host page size Signed-off-by: Stacey Son <sson@FreeBSD.org> Signed-off-by: Karim Taha <kariem.taha2.7@gmail.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20230925182709.4834-19-kariem.taha2.7@gmail.com>
This commit is contained in:
@@ -855,6 +855,13 @@ static abi_long freebsd_syscall(void *cpu_env, int num, abi_long arg1,
|
||||
break;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Misc
|
||||
*/
|
||||
case TARGET_FREEBSD_NR_break:
|
||||
ret = do_obreak(arg1);
|
||||
break;
|
||||
|
||||
/*
|
||||
* sys{ctl, arch, call}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user