From a5ba1ca6083aab0b628d03122e3553c92e3da3a5 Mon Sep 17 00:00:00 2001 From: bellard Date: Sun, 3 Oct 2004 21:47:33 +0000 Subject: [PATCH] BIOS floppy fix for NT4 (Mike Nordell, Derek Fawcus) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1096 c046a42c-6fe2-441c-8c8c-71466251a162 --- pc-bios/bios.bin | Bin 65536 -> 65536 bytes pc-bios/bios.diff | 42 +++++++++++++++++++++++++++++++++++++++--- 2 files changed, 39 insertions(+), 3 deletions(-) diff --git a/pc-bios/bios.bin b/pc-bios/bios.bin index b87e10b58abbb7bb5298d968cf9e21cae0a64d31..dbac54005b995e1297239f18447357004dfe321e 100644 GIT binary patch delta 10142 zcmaJ{30&0G_MbZ}qM|G!`!eVtps0)*Dgu(?&%F>-Bo)DwXOcUhz0AQtof*XKxV%g= zv!0bNm$26_aiNd&)ZB7OEiK7s`Wrw|Gc`o!f6l!#!(jcN^Ks^$?>YC}bI&>V-21yf zii(_zik$ZjVqv;ijaH>i$;qD{ujv&V+oxyj3q5=5G`imLI$eCPzL3NGd{O2vSmmqO z+BmilH2pfqeA>2DigIU0DQfR>gA{JwY^Tkusi|#3R%|7)^f0Gi3X3n_-_J$O`oMws zP7z+M&Fx#8+qSMKyOJ(Dt5TJMQ^i%zEj8W&HXw+dgOCA1UB7TMNg8v2vq|b`Hmj7C z?(*;0=~BCt6oYifB;6^gEa+C2RhO=`gQ)|i>)hSthsYoA$nU}VWsXpgNvca|DDY8? z@MOTgpssCY3--!)chH(&mQ|Ck?1HLU*Vavp$by8&uqm)li+-Ju=6ERWO!oe8~}dk&iwA`Xu#c!(c{IFzW`(k~Xm~ zA!OjxRMWadhA6|5+}w!j_Kl2vH@xa_hre@DP=x$ zfek6Snx-QdaM@xpN>6Ir=_*s@B6O9RgVV5e08@-d7>5jE8{yQDS3(vL&mcW3mAqps+epuhlDF)yN|lpQUj_`8lJ!4V7FW5}4(YB^ zE&gw!w`yU}bJfP9JuExllblk9q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aBr zH_?{S(^0f#^xR!TeP#4Ci}wAg>kwLYfAH)yltZue{uz~$*Dhe5l32TdSs<}?0W%Sn zukXe(VBPvb>>W6~eii$(dfhU!qS_mF znFlQV@^5G+7O8dk0+Qa*b;C!4B78!?#ipXYGqJJy$;`~*{3&wsT|6Yc<-@E4MTt!a z>M1}RqTfG7lkbRcBd`j@Yj7KO#~1pR$W*gSiJo$sL*7jCq{Lf3@d(W&1j@dXVT)y| z|K|jV_gQz;3_Jn`!k?B$;(ptSg{E1#g+7a?7vbG8d(ah#Je0+ep2JtclIMERpHVzF zhcWo&xfrI0j+HT~>sO)5j46AHqcEV`_1Hxlhwju&=g7tFc=0f&GK4k2QTb;HTnh z^E}b^6@LRTL9~5Tytv>aMBCr2_#2e~oPi!+_lH`UmMSJFM<8;`^Xv;axMebX z6FR|ge8v0_oDDEUHSZ6-vh4Em^Z~^kKhSun8>$Cw_0zJ$khN`f^+(&jd5Eon%KC>w zg0}1`(5RYgyXI=t8&`JC7wsaAIsuyN2e32MQ9pYykIvQVROo$aL;NfIc(46@VLu*| z#D5w0O^Am6@gs>eg4(P3#FcA2>-}%EC#wBlif3BumiI6JuI<$K9i66C!-_M(|D}xT zA-{HFY%h%B1HGP}S-2yLWW5<|us-NByr3|ug-?BF|K2O}rxRYK^?uo_fPY~r?6|`k z`UWC5v@oqXnQaDB^F+`6FBL|eK&3@G8b2krnTX)(1=l+2JpBJ|Jy5;uj^3+lQx!@@ m79`hJo#pdjr!CWK@V2O;=_DJn#XjA`F8ghTYj$6@?EeAA@7Ur1 diff --git a/pc-bios/bios.diff b/pc-bios/bios.diff index 443236a246..4e38d182c0 100644 --- a/pc-bios/bios.diff +++ b/pc-bios/bios.diff @@ -4,7 +4,7 @@ RCS file: /cvsroot/bochs/bochs/bios/rombios.c,v retrieving revision 1.110 diff -u -w -r1.110 rombios.c --- rombios.c 31 May 2004 13:11:27 -0000 1.110 -+++ rombios.c 20 Jun 2004 13:10:07 -0000 ++++ rombios.c 3 Oct 2004 21:41:43 -0000 @@ -137,6 +137,7 @@ #define DEBUG_INT16 0 #define DEBUG_INT1A 0 @@ -60,6 +60,15 @@ diff -u -w -r1.110 rombios.c ASM_END } } +@@ -7880,7 +7868,7 @@ + mov al, #0x02 + out #0x0a, al ;; clear DMA-1 channel 2 mask bit + +- SET_INT_VECTOR(0x1E, #0xF000, #diskette_param_table) ++ SET_INT_VECTOR(0x1E, #0xF000, #diskette_param_table2) + SET_INT_VECTOR(0x40, #0xF000, #int13_diskette) + SET_INT_VECTOR(0x0E, #0xF000, #int0e_handler) ;; IRQ 6 + @@ -8344,6 +8332,19 @@ pop ax iret @@ -80,7 +89,34 @@ diff -u -w -r1.110 rombios.c ;-------------------- #if BX_PCIBIOS use32 386 -@@ -9560,6 +9561,10 @@ +@@ -9515,6 +9516,26 @@ + pop ds + iret + ++diskette_param_table2: ++;; New diskette parameter table adding 3 parameters from IBM ++;; Since no provisions are made for multiple drive types, most ++;; values in this table are ignored. I set parameters for 1.44M ++;; floppy here ++db 0xAF ++db 0x02 ;; head load time 0000001, DMA used ++db 0x25 ++db 0x02 ++db 18 ++db 0x1B ++db 0xFF ++db 0x6C ++db 0xF6 ++db 0x0F ++db 0x08 ++db 79 ;; maximum track ++db 0 ;; data transfer rate ++db 4 ;; drive type in cmos ++ + .org 0xf045 ; INT 10 Functions 0-Fh Entry Point + HALT(__LINE__) + iret +@@ -9560,6 +9581,10 @@ .org 0xf859 ; INT 15h System Services Entry Point int15_handler: pushf @@ -91,7 +127,7 @@ diff -u -w -r1.110 rombios.c push ds push es pushad -@@ -9570,6 +9575,10 @@ +@@ -9570,6 +9595,10 @@ popf //JMPL(iret_modify_cf) jmp iret_modify_cf -- GitLab