Do alignment after 64k-dma-boundary adjustment

This commit is contained in:
Ben Gras 2006-03-06 16:46:12 +00:00
parent 2478cde442
commit 34e4c7d02c

View file

@ -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. */