]> git.proxmox.com Git - mirror_qemu.git/commit - linux-user/syscall.c
alpha-linux-user: Fix sigprocmask.
authorRichard Henderson <rth@twiddle.net>
Mon, 3 May 2010 17:07:55 +0000 (10:07 -0700)
committerAurelien Jarno <aurelien@aurel32.net>
Fri, 21 May 2010 16:22:21 +0000 (16:22 +0000)
commita5b3b13bedc545b5e571480b9cf47d2d378ad193
treea452a2d96839feebd033e8ec8357257ab3b79d37
parentf43ce12b47323f0555ae9dfdf2f9d443346a4952
alpha-linux-user: Fix sigprocmask.

Alpha passes oldset by value in a register, and returns the newset
as the return value; as compared to the standard implementation in
which both are passed by reference.  This requires being able to
distinguish negative return values that are not errors.  Do this in
the same way as the Alpha Linux kernel, by storing a zero in V0 in
the implementation of the syscall.

At the same time, fix a think-o in the regular sigprocmask path in
which we passed the target, rather than the host, HOW value.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
linux-user/main.c
linux-user/syscall.c