retrieving revision 1.108
diff -u -w -r1.108 rombios.c
--- rombios.c 9 Feb 2004 16:48:50 -0000 1.108
-+++ rombios.c 22 May 2004 15:47:51 -0000
++++ rombios.c 23 May 2004 15:48:52 -0000
@@ -2254,6 +2254,7 @@
type = read_byte(get_SS(),buffer+1) & 0x1f;
removable = (read_byte(get_SS(),buffer+0) & 0x80) ? 1 : 0;
}
package_count = mouse_flags_2 & 0x07;
-@@ -8401,57 +8416,69 @@
+@@ -4833,8 +4848,10 @@
+ // ---------------------------------------------------------------------------
+
+ void
+-int13_cdrom(DI, SI, BP, SP, BX, DX, CX, AX, DS, ES, FLAGS)
+- Bit16u DI, SI, BP, SP, BX, DX, CX, AX, DS, ES, FLAGS;
++int13_cdrom(DI, DIH, SI, SIH, BP, BPH, SP, SPH, BX, BXH, DX, DXH, CX, CXH, AX, AXH,
++ DS, ES, FLAGS)
++ Bit16u DI, DIH, SI, SIH, BP, BPH, SP, SPH, BX, BXH, DX, DXH, CX, CXH, AX, AXH,
++ DS, ES, FLAGS;
+ {
+ Bit16u ebda_seg=read_word(0x0040,0x000E);
+ Bit8u device, status, locks;
+@@ -7692,9 +7709,12 @@
+ push ds
+ push ss
+ pop ds
+- pusha
++ // ebx is modified: BSD 5.2.1 boot loader problem, so we save all
++ // the 32 bit registers. It should be done in all the bios or no 32
++ // bit register should be used without saving it first.
++ pushad
+ call _int13_cdrom
+- popa
++ popad
+ pop ds
+ pop es
+ popf
+@@ -8401,57 +8421,69 @@
cmp al, #0x08
jne pci_pro_f09
call pci_pro_select_reg
jmp pci_pro_ok
pci_pro_unknown:
mov ah, #0x81
-@@ -8468,6 +8495,7 @@
+@@ -8468,6 +8500,7 @@
retf
pci_pro_select_reg:
mov eax, #0x800000
mov ax, bx
shl eax, #8
-@@ -8476,6 +8504,7 @@
+@@ -8476,6 +8509,7 @@
and al, #0xfc
mov dx, #0x0cf8
out dx, eax
ret
use16 386
-@@ -8536,57 +8565,69 @@
+@@ -8536,57 +8570,69 @@
cmp al, #0x08
jne pci_real_f09
call pci_real_select_reg
jmp pci_real_ok
pci_real_unknown:
mov ah, #0x81
-@@ -8599,6 +8640,7 @@
+@@ -8599,6 +8645,7 @@
ret
pci_real_select_reg:
mov eax, #0x800000
mov ax, bx
shl eax, #8
-@@ -8607,6 +8649,7 @@
+@@ -8607,6 +8654,7 @@
and al, #0xfc
mov dx, #0x0cf8
out dx, eax