diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-05-27 23:25:06 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-05-27 23:25:06 +0000 |
commit | 14ae3ba7f94f962669e3274cad28dcabb5185287 (patch) | |
tree | a6019dee857dd8c5777b96772fa387bfeff37d06 /linux-user | |
parent | 5a91de8c902e8de43d80df2db6f056710d414e56 (diff) | |
download | qemu-14ae3ba7f94f962669e3274cad28dcabb5185287.zip qemu-14ae3ba7f94f962669e3274cad28dcabb5185287.tar.gz qemu-14ae3ba7f94f962669e3274cad28dcabb5185287.tar.bz2 |
mmap2 fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@190 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user')
-rw-r--r-- | linux-user/syscall.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 90fb9dc..329fb0f 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -1047,7 +1047,7 @@ static int write_ldt(CPUX86State *env, 0x7000; if (!oldmode) entry_2 |= (useable << 20); - + /* Install the new entry ... */ install: lp = (uint32_t *)(ldt_table + (ldt_info.entry_number << 3)); @@ -1753,7 +1753,8 @@ long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3, #else case TARGET_NR_mmap: #endif - ret = get_errno(target_mmap(arg1, arg2, arg3, arg4, arg5, arg6)); + ret = get_errno(target_mmap(arg1, arg2, arg3, arg4, arg5, + arg6 << TARGET_PAGE_BITS)); break; case TARGET_NR_munmap: ret = get_errno(target_munmap(arg1, arg2)); |