Subject: Re: how to avoid re-ordering?
To: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
From: Jason R Thorpe <thorpej@wasabisystems.com>
List: tech-kern
Date: 12/16/2001 11:00:16
On Mon, Dec 17, 2001 at 03:42:54AM +0900, YAMAMOTO Takashi wrote:
> From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
> > I noticed that spl*/splx are inlined and re-orderd
> > with "-O3 -march=pentium", and it produce bad codes as a result.
> > I actually experienced panics due to this.
>
> I'll commit attached patch some days later if no objection.
> thanks.
Should't we just declare "cpl" as __volatile?
--
-- Jason R. Thorpe <thorpej@wasabisystems.com>