On Sat, Nov 13, 2010 at 2:23 PM, V.T. Mueller
<v...@vorsprung-durch-denken.de> wrote:
> After a while of searching I found a note in
> http://www.openbsd.org/plus39.html that code for MCE/MCA was added on i386.
> There, it also reads: "amd64 should get this next".
>
> Was there work on this already? If so, could someone point me to the
> relevant code/documentation, please?

amd64 appears to have had a interrupt gate for the machine check
exception from the start.  There's no documentation that I know of;
whether i386 or amd64, you just get a panic "fatal machine check" when
it happens, with a dump of some of the bits from the trap frame.

The code can be found in the sys/arch/{i386/i386,amd64/amd64}/
directories.  machdep.c has the bits that set up the gate, the asm for
which is actually defined in either locore.s or vector.S, and then
trap.c has the high-level handler, which is just the default case in
trap().


Philip Guenther

Reply via email to