diff options
author | Richard Purdie <richard@openedhand.com> | 2008-01-02 11:14:28 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2008-01-02 11:14:28 +0000 |
commit | 7eed7c05fdb54e30976eb6599637786e2260f432 (patch) | |
tree | a9b652c4ea7c353f93533a069a0f56f53b6bf59b /meta/packages/qemu/qemu-0.9.0+cvs20071230/32_syscall_sysctl.patch | |
parent | 8ff44c1f07bd9e0d9a98b1b68e4739dbb71f4f3b (diff) | |
download | openembedded-core-7eed7c05fdb54e30976eb6599637786e2260f432.tar.gz openembedded-core-7eed7c05fdb54e30976eb6599637786e2260f432.tar.bz2 openembedded-core-7eed7c05fdb54e30976eb6599637786e2260f432.tar.xz openembedded-core-7eed7c05fdb54e30976eb6599637786e2260f432.zip |
qemu: upgrade 20071121 -> 20071230 to fix problems with target mmap'd regions overlapping with the host system libraries
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3397 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/qemu/qemu-0.9.0+cvs20071230/32_syscall_sysctl.patch')
-rw-r--r-- | meta/packages/qemu/qemu-0.9.0+cvs20071230/32_syscall_sysctl.patch | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/meta/packages/qemu/qemu-0.9.0+cvs20071230/32_syscall_sysctl.patch b/meta/packages/qemu/qemu-0.9.0+cvs20071230/32_syscall_sysctl.patch new file mode 100644 index 000000000..5e8dd75b0 --- /dev/null +++ b/meta/packages/qemu/qemu-0.9.0+cvs20071230/32_syscall_sysctl.patch @@ -0,0 +1,55 @@ +#DPATCHLEVEL=0 +--- +# linux-user/syscall.c | 32 +++++++++++++++++++++++++++++--- +# 1 file changed, 29 insertions(+), 3 deletions(-) +# +Index: linux-user/syscall.c +=================================================================== +--- linux-user/syscall.c.orig 2007-12-03 15:56:24.000000000 +0000 ++++ linux-user/syscall.c 2007-12-03 15:57:36.000000000 +0000 +@@ -52,6 +52,7 @@ + //#include <sys/user.h> + #include <netinet/ip.h> + #include <netinet/tcp.h> ++#include <sys/sysctl.h> + + #define termios host_termios + #define winsize host_winsize +@@ -4739,9 +4740,34 @@ abi_long do_syscall(void *cpu_env, int n + break; + #endif + case TARGET_NR__sysctl: +- /* We don't implement this, but ENOTDIR is always a safe +- return value. */ +- ret = -TARGET_ENOTDIR; ++ { ++ struct __sysctl_args *args = (struct __sysctl_args *) arg1; ++ int *name_target, *name, nlen, *oldlenp, oldlen, newlen, i; ++ void *oldval, *newval; ++ ++ name_target = (int *) tswapl((long) args->name); ++ nlen = tswapl(args->nlen); ++ oldval = (void *) tswapl((long) args->oldval); ++ oldlenp = (int *) tswapl((long) args->oldlenp); ++ oldlen = tswapl(*oldlenp); ++ newval = (void *) tswapl((long) args->newval); ++ newlen = tswapl(args->newlen); ++ ++ name = alloca(nlen * sizeof (int)); ++ for (i = 0; i < nlen; i++) ++ name[i] = tswapl(name_target[i]); ++ ++ if (nlen == 2 && name[0] == CTL_KERN && name[1] == KERN_VERSION) { ++ ret = get_errno( ++ sysctl(name, nlen, oldval, &oldlen, newval, newlen)); ++ if (!is_error(ret)) { ++ *oldlenp = tswapl(oldlen); ++ } ++ } else { ++ gemu_log("qemu: Unsupported sysctl name\n"); ++ ret = -ENOSYS; ++ } ++ } + break; + case TARGET_NR_sched_setparam: + { |