diff options
author | Marcin Juszkiewicz <hrw@openembedded.org> | 2007-08-22 16:58:07 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openembedded.org> | 2007-08-22 16:58:07 +0000 |
commit | 84a3b541b14fb54cb19d5144bc5be156b7f87721 (patch) | |
tree | e2ed34977d20c8b355230c49bace94c12b22bc0d /packages/qemu/files/39_syscall_fadvise64.patch | |
parent | 81149649bc483149f0a959de43415cb4ff7aa0ba (diff) |
qemu: added 20070613 version from Poky - this works on 32 and 64 bit machines
Diffstat (limited to 'packages/qemu/files/39_syscall_fadvise64.patch')
-rw-r--r-- | packages/qemu/files/39_syscall_fadvise64.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/packages/qemu/files/39_syscall_fadvise64.patch b/packages/qemu/files/39_syscall_fadvise64.patch new file mode 100644 index 0000000000..0a7f4c48dd --- /dev/null +++ b/packages/qemu/files/39_syscall_fadvise64.patch @@ -0,0 +1,21 @@ +--- + linux-user/syscall.c | 6 ++++++ + 1 file changed, 6 insertions(+) + +Index: linux-user/syscall.c +=================================================================== +--- linux-user/syscall.c.orig 2007-06-13 11:51:55.000000000 +0100 ++++ linux-user/syscall.c 2007-06-13 11:52:13.000000000 +0100 +@@ -4434,6 +4434,12 @@ long do_syscall(void *cpu_env, int num, + ret = get_errno(mincore((void*)arg1, (size_t)arg2, (unsigned char*)arg3)); + break; + #endif ++#ifdef TARGET_NR_fadvise64_64 ++ case TARGET_NR_fadvise64_64: ++ /* Just return success */ ++ ret = get_errno(0); ++ break; ++#endif + #ifdef TARGET_NR_madvise + case TARGET_NR_madvise: + /* A straight passthrough may not be safe because qemu sometimes |