On Sat, Apr 26, 2008 at 06:01:12PM +0800, WANG Cong wrote: > > + /* > > + * When the stub stops, we find the following values on the > > + * beginning of the stack: > > + * (long) return_value > > + * (long) offset to failed sycall data (0 if no error) > > + */ > > + ret = *((unsigned long *) stack); > > > I am afraid the value will be truncated on 64bit machine, since > 'ret' is 'int' while 'stack' points to an 'unsigned long'. > > Is this expected?
That's dubious, but I don't think it breaks anything. On LE, *(int *) and *(long *) will give you the same answer, and the value here is an error code, which fits into 32 bits. Jeff -- Work email - jdike at linux dot intel dot com ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel