lkml.org 
[lkml]   [1999]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: subtle bug in <include/asm-i386/unistd.h>
From
Date
markus.oberhumer@jk.uni-linz.ac.at (Markus F.X.J. Oberhumer) writes:
>
> --- include/asm/unistd.h.orig Tue Jan 26 16:00:03 1999
> +++ include/asm/unistd.h Wed Mar 31 13:35:30 1999
> @@ -214,7 +214,7 @@
> long __res; \
> __asm__ volatile ("int $0x80" \
> : "=a" (__res) \
> - : "0" (__NR_##name)); \
> + : "a" (__NR_##name)); \
> __syscall_return(type,__res); \
> }

??? "0" means refer to operand 0, which is the "=a". Please see
the gcc manual (C Extensions/Extended Asm) for read-write constraints.
This is the prefered way to express them.

-Andi

--
This is like TV. I don't like TV.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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