Correct the computation of the various terms
authorhpa <hpa>
Fri, 14 Dec 2001 08:23:21 +0000 (08:23 +0000)
committerhpa <hpa>
Fri, 14 Dec 2001 08:23:21 +0000 (08:23 +0000)
memdisk/msetup.c

index 24282dd..d5036d8 100644 (file)
@@ -143,17 +143,17 @@ void parse_mem(void)
        else
          dos_mem = ep[1].start;
       }
-      if ( ep->start <= 0x100000 && ep[1].start > 0x100000 ) {
-       if ( ep[1].start > 0x1000000 )
-         low_mem = 0x1000000 - ep->start;
+      if ( ep->start <= 0x00100000 && ep[1].start > 0x00100000 ) {
+       if ( ep[1].start > 0x01000000 )
+         low_mem =  0x01000000 - 0x00100000;
        else
-         low_mem = ep[1].start - ep->start;
+         low_mem = ep[1].start - 0x00100000;
       }
-      if ( ep->start <= 0x1000000 && ep[1].start > 0x1000000 ) {
+      if ( ep->start <= 0x01000000 && ep[1].start > 0x01000000 ) {
        if ( ep[1].start > 0x100000000 )
-         high_mem = 0x100000000 - ep->start;
+         high_mem = 0x100000000 - 0x01000000;
        else
-         high_mem = ep[1].start - ep->start;
+         high_mem = ep[1].start - 0x01000000;
       }
     }
   }