[PATCH] rombios: post_init_ivt change

"Sebastian Herbszt" <[email protected]>
Newsgroups gmane.comp.emulators.bochs.devel
Message-ID <B0E88B390B9842EC84742FD7D4D4FBC9@FSCPC>
post_init_ivt change based on sf patch #3567829.

Sebastian

Index: bios/rombios.c
===================================================================
--- bios.orig/rombios.c
+++ bios/rombios.c
@@ -10671,16 +10671,14 @@ post_init_pic:
 
 post_init_ivt:
   ;; set all interrupts to default handler
-  xor  bx, bx         ;; offset index
+  xor  di, di         ;; offset index
   mov  cx, #0x0100    ;; counter (256 interrupts)
+  mov  ax, #0xF000
+  shl  eax, #16
   mov  ax, #dummy_iret_handler
-  mov  dx, #0xF000
-
-post_default_ints:
-  mov  [bx], ax
-  mov  2[bx], dx
-  add  bx, #4
-  loop post_default_ints
+  cld
+  rep
+    stosd
 
   ;; Master PIC vector
   mov  bx, #0x0020

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev

_______________________________________________
bochs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bochs-developers
post_init_ivt_change1.diff (application/octet-stream, 623 B)
Index: bios/rombios.c
===================================================================
--- bios.orig/rombios.c
+++ bios/rombios.c
@@ -10671,16 +10671,14 @@ post_init_pic:
 
 post_init_ivt:
   ;; set all interrupts to default handler
-  xor  bx, bx         ;; offset index
+  xor  di, di         ;; offset index
   mov  cx, #0x0100    ;; counter (256 interrupts)
+  mov  ax, #0xF000
+  shl  eax, #16
   mov  ax, #dummy_iret_handler
-  mov  dx, #0xF000
-
-post_default_ints:
-  mov  [bx], ax
-  mov  2[bx], dx
-  add  bx, #4
-  loop post_default_ints
+  cld
+  rep
+    stosd
 
   ;; Master PIC vector
   mov  bx, #0x0020
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.