Re: [PATCH] NMI trap revised (was Re: NMI errors in 2.0.30??)

tenthumbs@cybernex.net
Fri, 09 May 1997 00:42:43 GMT


On Thu, 8 May 1997 17:35:49 +0200, you wrote:

> I'll test it today and let's see if the bits work or not.
>
> Martin
>

It appears that some BIOSes (like mine) don't set the appropriate bits so that
this will work. Try this patch to arch/i386/boot/setup.S. This seems like the
right place to change hardware configuration.

John

--- setup.S.orig Sat Mar 30 13:58:57 1996
+++ setup.S Thu May 8 20:05:12 1997
@@ -247,6 +247,16 @@

call video ! NOTE: we need DS pointing to bootsector

+!
+! Set NMI reporting bits
+! RAM parity error set with 0x04, I/O parity error set with 0x08
+!
+ inb al, 0x61
+ or al, #0x0C
+ call delay
+ outb 0x61, al
+ call delay
+
! Get hd0 data

xor ax,ax ! clear ax