lkml.org 
[lkml]   [1997]   [Oct]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Ugh in 2.1.60
Date
Followup to:  <k2en51uavl.fsf@zero.aec.at>
By author: Andi Kleen <ak@muc.de>
In newsgroup: linux.dev.kernel
>
> The problem of returning two values in get_user() can be simply solved
> by using asm wrappers and the same trick that the syscalls use - just
> set the carry bit on error and fetch the error from another register
> then.
>

At least on the i386, syscall errors are handled by returning -errno,
which means that negative values cannot be legitimately returned.

-hpa
--
PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD 1E DF FE 69 EE 35 BD 74
See http://www.zytor.com/~hpa/ for web page and full PGP public key
I am Bahá'í -- ask me about it or see http://www.bahai.org/
"To love another person is to see the face of God." -- Les Misérables

\
 
 \ /
  Last update: 2005-03-22 13:40    [W:1.109 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site