Re: Triggering Machine Check Exceptions on x86
From: Alan Cox
Date: Thu Mar 23 2006 - 09:04:01 EST
On Mer, 2006-03-22 at 17:23 -0800, Kalyan Rajasekharuni wrote:
> I would like to trigger a Machine Check Exception soley by a
> 'software mechanism' on my x86 box. The idea is to test my
> machine check exception handler thoroughly. I want a reliable
> way which will generate this exception every time when I run
> the software code snippet.
You will need to ask the CPU vendor I think. You can trigger MCEs on
some x86s by exploiting obscure hardware flaws in supervisor mode
(notably with mismatched memory cache types for the same page) but I
don't know of any way to make that predictable.
Alan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/