qemu-ppc
[Top][All Lists]
Advanced

[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

Attachment: pgpfQczyqhW5s.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]