On 10/27/06, Marton <[EMAIL PROTECTED]> wrote:

> Any chances of a permanent fix or it is actually hard to implement?

Something like this:

--- initdisk.c.old      2006-10-30 00:30:02.000000000 +0000
+++ initdisk.c  2006-10-30 00:32:31.000000000 +0000
@@ -995,7 +995,9 @@
   for (num_retries = 0; num_retries < N_RETRY; num_retries++)
   {
     regs.d.b.l = drive | 0x80;
-    if (driveParam->descflags & DF_LBA)
+    LBA_to_CHS(&chs, LBA_address, driveParam);
+    if ((driveParam->descflags & DF_LBA) &&
+        (InitKernelConfig.ForceLBA || ExtLBAForce || chs.Cylinder > 1023))
     {
       dap.number_of_blocks = 1;
       dap.buffer_address = buffer;
@@ -1009,7 +1011,6 @@
     }
     else
     {                           /* transfer data, using old bios functions */
-      LBA_to_CHS(&chs, LBA_address, driveParam);
       /* avoid overflow at end of track */

       if (chs.Cylinder > 1023)

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to