Frank Mehnert wrote:
>
> Hi,
>
> sorry for asking this question in the Linux-Kernel Mailing list,
> but it seems that I can get the best solution for my problem here
> (gnu.gcc.help ignores my question).
>
> A code fragment of a project looks like this:
Try:
asm volatile ("...."
: "=a" (outEAX),
"=b" (outEBX),
"=c" (outECX),
"=d" (outEDX),
"=S" (outESI),
"=D" (outEDI)
: "0" (inEAX),
"1" (inEBX),
"2" (inECX),
"3" (inEDX),
"4" (inESI),
"5" (inEDI)
: "memory");
If you use the same register for input and output, then use a number in
the input section which corresponds to the position in the output
section.
--Brian Gerst
- 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/
This archive was generated by hypermail 2b29 : Sun May 07 2000 - 21:00:12 EST