[cfe-dev] error: invalid operand for instruction (inl)
Joerg Sonnenberger
joerg at britannica.bec.de
Wed Nov 13 05:57:46 PST 2013
On Wed, Nov 13, 2013 at 01:52:40AM +0000, John Calcote wrote:
> static void vmw_backdoor(unsigned cmd, registers* regs)
> {
> __asm__ __volatile__(
> "inl (%%dx)"
> : "=a" (regs->eax), "=c" (regs->ecx), "=d" (regs->edx), "=b" (regs->ebx)
> : "0" (VMW_MAGIC), "1" (cmd), "2" (VMW_CMD_IOPORT), "3" (MAX_UINT32)
> : "memory");
> }
It should be "inl %%dx, %%eax".
Joerg
More information about the cfe-dev
mailing list