diff options
author | blueswir1 | 2007-07-07 22:45:44 +0200 |
---|---|---|
committer | blueswir1 | 2007-07-07 22:45:44 +0200 |
commit | 4c1de73d15a31336366d9d38249611956a4e2803 (patch) | |
tree | 84043c2fc1ba0836a24a3d659d5f3647b2ae2c19 /linux-user/syscall.c | |
parent | Fix Sparc64 page size (diff) | |
download | qemu-4c1de73d15a31336366d9d38249611956a4e2803.tar.gz qemu-4c1de73d15a31336366d9d38249611956a4e2803.tar.xz qemu-4c1de73d15a31336366d9d38249611956a4e2803.zip |
Page align brk result like real Linux
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3048 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user/syscall.c')
-rw-r--r-- | linux-user/syscall.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 9ee7352313..6cad6d92f4 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -308,7 +308,7 @@ static target_ulong target_original_brk; void target_set_brk(target_ulong new_brk) { - target_original_brk = target_brk = new_brk; + target_original_brk = target_brk = HOST_PAGE_ALIGN(new_brk); } long do_brk(target_ulong new_brk) |