[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [Qemu-devel] [V2 PATCH 10/12] linux-user: clock_nanosleep
From: |
David Gibson |
Subject: |
Re: [Qemu-ppc] [Qemu-devel] [V2 PATCH 10/12] linux-user: clock_nanosleep errno Handling on PPC |
Date: |
Tue, 26 Aug 2014 10:48:38 +1000 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Tue, Aug 12, 2014 at 01:53:41PM -0500, Tom Musta wrote:
> The clock_nanosleep syscall is unusual in that it returns positive
> numbers in error handling situations, versus returning -1 and setting
> errno, or returning a negative errno value. On POWER, the kernel will
> set the SO bit of CR0 to indicate failure in a syscall. QEMU has
> generic handling to do this for syscalls with standard return values.
>
> Add special case code for clock_nanosleep to handle CR0 properly.
>
> Signed-off-by: Tom Musta <address@hidden>
> Reviewed-by: Peter Maydell <address@hidden>
Reviewed-by: David Gibson <address@hidden>
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
pgpfQczyqhW5s.pgp
Description: PGP signature
- Re: [Qemu-ppc] [Qemu-devel] [V2 PATCH 03/12] linux-user: Properly Handle semun Structure In Cross-Endian Situations, (continued)
- [Qemu-ppc] [V2 PATCH 06/12] linux-user: Detect Negative Message Sizes in msgsnd System Call, Tom Musta, 2014/08/12
- [Qemu-ppc] [V2 PATCH 04/12] linux-user: Make ipc syscall's third argument an abi_long, Tom Musta, 2014/08/12
- [Qemu-ppc] [V2 PATCH 08/12] linux-user: Detect fault in sched_rr_get_interval, Tom Musta, 2014/08/12
- [Qemu-ppc] [V2 PATCH 07/12] linux-user: Handle NULL sched_param argument to sched_*, Tom Musta, 2014/08/12
- [Qemu-ppc] [V2 PATCH 10/12] linux-user: clock_nanosleep errno Handling on PPC, Tom Musta, 2014/08/12
- Re: [Qemu-ppc] [Qemu-devel] [V2 PATCH 10/12] linux-user: clock_nanosleep errno Handling on PPC,
David Gibson <=
- [Qemu-ppc] [V2 PATCH 09/12] linux-user: Minimum Sig Handler Stack Size for PPC64 ELF V2, Tom Musta, 2014/08/12
- [Qemu-ppc] [V2 PATCH 12/12] linux-user: writev Partial Writes, Tom Musta, 2014/08/12
- [Qemu-ppc] [V2 PATCH 11/12] linux-user: Support target-to-host translation of mlockall argument, Tom Musta, 2014/08/12