diff options
author | Juergen Lock <nox@FreeBSD.org> | 2013-03-29 17:40:38 +0000 |
---|---|---|
committer | Juergen Lock <nox@FreeBSD.org> | 2013-03-29 17:40:38 +0000 |
commit | 45aa9370f03dfaf05a98af04f0addd7e3998d771 (patch) | |
tree | d33294058708ce0ec0faa156a7ed184dea6cdc1d /emulators/qemu-devel/files/patch-z6-bsd-user-usrstack1 | |
parent | - (force commit to note) add new port: games/chessx (diff) |
- Update net/usbredir to 0.6 .
- Update emulators/qemu-devel to 1.4.0 with preliminary bsd-user patches.
Thanx to: sson, cognet, and others for much improved bsd-user support -
it now runs at least quite a few mips64 and single-threaded
arm binaries, see:
https://wiki.freebsd.org/QemuUserModeHowTo
Diffstat (limited to 'emulators/qemu-devel/files/patch-z6-bsd-user-usrstack1')
-rw-r--r-- | emulators/qemu-devel/files/patch-z6-bsd-user-usrstack1 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/emulators/qemu-devel/files/patch-z6-bsd-user-usrstack1 b/emulators/qemu-devel/files/patch-z6-bsd-user-usrstack1 new file mode 100644 index 000000000000..df26a50388f1 --- /dev/null +++ b/emulators/qemu-devel/files/patch-z6-bsd-user-usrstack1 @@ -0,0 +1,18 @@ +--- a/bsd-user/syscall.c ++++ b/bsd-user/syscall.c +@@ -377,6 +377,15 @@ static abi_long do_freebsd_sysctl(abi_ul + *q++ = tswap32(*p); + oidfmt(snamep, namelen, NULL, &kind); + /* XXX swap hnewp */ ++#if HOST_LONG_BITS == 64 && TARGET_ABI_BITS == 32 ++ /* XXX there may be more sysctls that differ */ ++ if (namelen == 2 && ++ snamep[0] == CTL_KERN && snamep[1] == KERN_USRSTACK && ++ holdlen && holdlen == 4 && hnewp == NULL) { ++ (*(uint32_t *)holdp) = 0xfffff000U; ++ ret = 0; ++ } else ++#endif + ret = get_errno(sysctl(snamep, namelen, holdp, &holdlen, hnewp, newlen)); + if (!ret) + sysctl_oldcvt(holdp, holdlen, kind); |