]> Zhao Yanbai Git Server - minix.git/commitdiff
Do alignment after 64k-dma-boundary adjustment
authorBen Gras <ben@minix3.org>
Mon, 6 Mar 2006 16:46:12 +0000 (16:46 +0000)
committerBen Gras <ben@minix3.org>
Mon, 6 Mar 2006 16:46:12 +0000 (16:46 +0000)
boot/boot.c

index ae2a2183b5f8be9f3c34df2918085b54aa297220..424a94bc1039e581e871beec063edde29cd23168 100755 (executable)
@@ -502,7 +502,9 @@ void initialize(void)
 
 
        /* Check if data segment crosses a 64K boundary. */
-       if (newaddr + (daddr - caddr) < dma64k) newaddr= dma64k - runsize;
+       if (newaddr + (daddr - caddr) < dma64k)  {
+               newaddr= (dma64k - runsize) & ~0x0FFFFL;
+       }
 #endif
 
        /* Set the new caddr for relocate. */