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 <[email protected]> > Reviewed-by: Peter Maydell <[email protected]>
Reviewed-by: David Gibson <[email protected]> -- 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
pgpZTl8dpMvIE.pgp
Description: PGP signature
