ports/emulators/qemu-devel/files/patch-z2d-bsd-user-sson-002d
Juergen Lock 45aa9370f0 - 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
2013-03-29 17:40:38 +00:00

30 lines
777 B
Text

diff --git a/bsd-user/syscall.c b/bsd-user/syscall.c
index 4deb0db..bde9ee9 100644
--- a/bsd-user/syscall.c
+++ b/bsd-user/syscall.c
@@ -2377,7 +2377,7 @@ do_thr_exit(CPUArchState *cpu_env, abi_ulong tid_addr)
if (tid_addr) {
/* Signal target userland that it can free the stack. */
- if (! put_user_u32(1, tid_addr))
+ if (! put_user_sal(1, tid_addr))
_umtx_op(g2h(tid_addr), UMTX_OP_WAKE, INT_MAX,
NULL, NULL);
}
@@ -4588,10 +4588,13 @@ do_stat:
{
struct timespec ts;
- if (target_to_host_timespec(&ts, arg1))
- goto efault;
+ if (arg1) {
+ if (target_to_host_timespec(&ts, arg1))
+ goto efault;
+ ret = do_thr_suspend(&ts);
+ } else
+ ret = do_thr_suspend(NULL);
- ret = do_thr_suspend(&ts);
}
break;