bsd-user: Implement do_obreak function
Match linux-user, by manually applying the following commits, in order: d28b3c90 linux-user: Make sure initial brk(0) is page-aligned 15ad9853 linux-user: Fix qemu brk() to not zero bytes on current page dfe49864 linux-user: Prohibit brk() to to shrink below initial heap address eac78a4b linux-user: Fix signed math overflow in brk() syscall c6cc059e linux-user: Do not call get_errno() in do_brk() e69e032d linux-user: Use MAP_FIXED_NOREPLACE for do_brk() cb9d5d1f linux-user: Do nothing if too small brk is specified 2aea137a linux-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>
Please register or sign in to comment