mirror of
https://git.freebsd.org/ports.git
synced 2025-06-27 23:50:30 -04:00
- 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
47 lines
1.3 KiB
Text
47 lines
1.3 KiB
Text
--- qemu-1.4.0/bsd-user/syscall.c.orig
|
|
+++ qemu-1.4.0/bsd-user/syscall.c
|
|
@@ -62,7 +62,11 @@
|
|
#include <sys/rtprio.h>
|
|
#include <sys/umtx.h>
|
|
#include <sys/uuid.h>
|
|
+#if defined(__FreeBSD_version) && __FreeBSD_version > 900000
|
|
#include <sys/_termios.h>
|
|
+#else
|
|
+#include <sys/termios.h>
|
|
+#endif
|
|
#include <sys/ttycom.h>
|
|
#include <sys/reboot.h>
|
|
#include <sys/timex.h>
|
|
@@ -6383,6 +6387,7 @@ abi_long do_freebsd_syscall(void *cpu_en
|
|
val, NULL, NULL));
|
|
break;
|
|
|
|
+#if defined(__FreeBSD_version) && __FreeBSD_version > 900000
|
|
case TARGET_UMTX_OP_NWAKE_PRIVATE:
|
|
if (! access_ok(VERIFY_READ, obj,
|
|
val * sizeof(uint32_t)))
|
|
@@ -6390,7 +6395,7 @@ abi_long do_freebsd_syscall(void *cpu_en
|
|
ret = get_errno(_umtx_op(g2h(obj), UMTX_OP_NWAKE_PRIVATE,
|
|
val, NULL, NULL));
|
|
break;
|
|
-
|
|
+#endif
|
|
|
|
case TARGET_UMTX_OP_RW_RDLOCK:
|
|
if (target_ts) {
|
|
@@ -6425,6 +6430,7 @@ abi_long do_freebsd_syscall(void *cpu_en
|
|
break;
|
|
#endif
|
|
|
|
+#if defined(__FreeBSD_version) && __FreeBSD_version > 900000
|
|
case TARGET_UMTX_OP_SEM_WAIT:
|
|
/* XXX Assumes struct _usem is opauque to the user */
|
|
if (! access_ok(VERIFY_WRITE, obj,
|
|
@@ -6447,6 +6453,7 @@ abi_long do_freebsd_syscall(void *cpu_en
|
|
ret = get_errno(_umtx_op(g2h(obj), UMTX_OP_SEM_WAKE,
|
|
val, NULL, NULL));
|
|
break;
|
|
+#endif
|
|
|
|
default:
|
|
ret = -TARGET_EINVAL;
|