mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-26 19:42:33 -06:00
linux-user: Make sure initial brk(0) is page-aligned
Fixes:86f04735ac
("linux-user: Fix brk() to release pages") Signed-off-by: Andreas Schwab <schwab@suse.de> Message-Id: <mvmpm55qnno.fsf@suse.de> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> (cherry picked from commitd28b3c90cf
) Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
35720b3d90
commit
0167759c9a
1 changed files with 1 additions and 1 deletions
|
@ -806,7 +806,7 @@ static abi_ulong brk_page;
|
|||
|
||||
void target_set_brk(abi_ulong new_brk)
|
||||
{
|
||||
target_brk = new_brk;
|
||||
target_brk = TARGET_PAGE_ALIGN(new_brk);
|
||||
brk_page = HOST_PAGE_ALIGN(target_brk);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue