Re: Andi, you broke my laptop :-)

From: Pete Zaitcev
Date: Thu May 10 2007 - 12:39:41 EST


On Thu, 10 May 2007 15:35:56 +0200, "Joerg Roedel" <joerg.roedel@xxxxxxx> wrote:

> I debugged this problem a bit and my compiler[1]interprets the =A
> constraint as %rax instead of %edx:%eax on x86_64 which causes the
> problem. The appended patch provides a workaround for this and fixed the
> hang on my machine.
>
> [1] gcc version 4.1.3 20070429 (prerelease) (Debian 4.1.2-5)

> alternative_io(ASM_NOP3, ".byte 0x0f,0x01,0xf9", X86_FEATURE_RDTSCP,
> - "=A" (ret), "0" (0ULL) : "ecx", "memory");
> + ASM_OUTPUT2("=a" (eax), "=d" (edx)),
> + "a" (0U), "d" (0U) : "ecx", "memory");

This works for me. Thanks, Joerg.

gcc version 4.1.2 20070424 (Red Hat 4.1.2-11)

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