[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: Inline assembly syntax in gcc...
On Mon, Jun 05, 2000 at 03:20:22PM +0530, Kedar Patankar wrote:
> Hi all,
>
> Can anyone point out the way inline assembly is used in gcc? In particular
> I am confused about the following kind of code in the kernel.
>
> asm volatile ("movl %%cr4, %0\n\t"
> "movl %0, %1\n\t"
> "andb $0x7f, %b1\n\t"
> "movl %1, %%cr4\n\t"
> : "=r" (ctxt->cr4val), "=q" (tmp) : : "memory");
Look in gcc.info.
-Arun