[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4CD97A3D.1040602@xs4all.nl>
Date: Tue, 09 Nov 2010 17:43:41 +0100
From: Jim <jim876@...all.nl>
To: Andreas Schwab <schwab@...hat.com>
CC: Andi Kleen <andi@...stfloor.org>, Michael Matz <matz@...e.de>,
Dave Korn <dave.korn.cygwin@...il.com>,
Richard Guenther <richard.guenther@...il.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
gcc@....gnu.org
Subject: Re: gcc 4.5.1 / as 2.20.51.0.11 miscompiling drivers/char/i8k.c ?
On 11/09/2010 02:57 PM, Andreas Schwab wrote:
> Andi Kleen <andi@...stfloor.org> writes:
>
>> @@ -142,7 +142,7 @@ static int i8k_smm(struct smm_regs *regs)
>> "lahf\n\t"
>> "shrl $8,%%eax\n\t"
>> "andl $1,%%eax\n"
>> - :"=a"(rc)
>> + :"=a"(rc), "=m" (*regs)
>
> I think this should be "+m".
>
> Andreas.
>
Just tested Andi's patch with Andreas' suggestion to make it +m,
i.e. like attached and can confirm it solves the issue.
Thanks guys,
Jim Bos
View attachment "PATCH.i8k.c" of type "text/plain" (566 bytes)
Powered by blists - more mailing lists