[PATCH] rombios: set int vector 78h and above to zero

"Sebastian Herbszt" <[email protected]>
Newsgroups gmane.comp.emulators.bochs.devel
Message-ID <2411408C7CAC4E0BBB640023EF926A8C@FSCPC>
Set INT vector 78h and above to zero; AWARD BIOS does this.
Change based on sf patch #507.

Sebastian

Index: bios/rombios.c
===================================================================
--- bios.orig/rombios.c
+++ bios/rombios.c
@@ -10724,10 +10724,12 @@ post_default_slave_pic_ints:
   rep
     stosw
 
-  ;; set vector 0x79 to zero
-  ;; this is used by 'guardian angel' protection system
-  SET_INT_VECTOR(0x79, #0, #0)
-
+  ;; set vector 0x78 and above to zero
+  xor  eax, eax
+  mov  cl, #0x88 ;; 136 dwords
+  mov  di, #0x1e0
+  rep
+    stosd
   ret
 
 ;; the following area can be used to write dynamically generated tables

------------------------------------------------------------------------------
WINDOWS 8 is here. 
Millions of people.  Your app in 30 days.
Visit The Windows 8 Center at Sourceforge for all your go to resources.
http://windows8center.sourceforge.net/
join-generation-app-and-make-money-coding-fast/

_______________________________________________
bochs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bochs-developers
set_int_78h_and_above_to_zero.diff (application/octet-stream, 537 B)
Index: bios/rombios.c
===================================================================
--- bios.orig/rombios.c
+++ bios/rombios.c
@@ -10724,10 +10724,12 @@ post_default_slave_pic_ints:
   rep
     stosw
 
-  ;; set vector 0x79 to zero
-  ;; this is used by 'guardian angel' protection system
-  SET_INT_VECTOR(0x79, #0, #0)
-
+  ;; set vector 0x78 and above to zero
+  xor  eax, eax
+  mov  cl, #0x88 ;; 136 dwords
+  mov  di, #0x1e0
+  rep
+    stosd
   ret
 
 ;; the following area can be used to write dynamically generated tables
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.