On Thu, 10 May 2007 15:35:56 +0200, "Joerg Roedel" <[email protected]> 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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]