Port-i386 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Xeon X3430 = immediate panic



On Mon, Nov 30, 2009 at 10:58:48PM +0000, Matthias Scheler wrote:
> On Mon, Nov 30, 2009 at 06:12:54PM +0100, Christoph Egger wrote:
> > > How do they do that? Do they modify interrupt vector 13 so it
> > > doesn't panic the kernel but instead sets some variable?
> > 
> > Linux and Xen have a rdmsr_safe and wrmsr_safe function
> > which sets up a 'fixup' section where the cpu jumps to on #GP.
> > The rdmsr_safe/wrmsr_safe return failure in that case.
> 
> How hard is it to implement something like that in NetBSD? The FreeBSD
> code which does this looks straightforward. But I don't know enough
> about IDT handling in NetBSD.

The #GP fault handling shouldn't be that much different from the page fault
handling. So I suspect the same sort of hackery that allows page faults
to be non-fatal could be used.

        David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index