Re: Bus Errors!

Richard B. Johnson (root@chaos.analogic.com)
Sat, 7 Feb 1998 17:56:51 -0500 (EST)


On Sat, 7 Feb 1998, Alan Cox wrote:

> > > You can get align errors from a variety of things. CMPXCHG8 for example has
> > > alignment rules.
> >
> > This is virtual (artificial), available only in CPL 3 (user mode) to
> > check for optimum alignment of operands during development. You
>
> Its always true for CMPXCHG8
>
Then it's a BUG. According to the specifications....

Protected Mode Exceptions

#GP(0) if the result is in a nonwritable segment; #GP(0) for an illegal
memory operand effective address in CS, DS, ES, FS, or GS segments; #SS(0)
for an illegal address in the SS Segment; #PF(fault code) for a page
fault; #AC for unaligned memory reference if the current privilege level
is 3.

Note the #AC only occurs in user-mode.

Cheers,
Dick Johnson
***** FILE SYSTEM MODIFIED *****
Penguin : Linux version 2.1.85 on an i586 machine (66.15 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu