Do alignment after 64k-dma-boundary adjustment
This commit is contained in:
parent
2478cde442
commit
34e4c7d02c
1 changed files with 3 additions and 1 deletions
|
@ -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. */
|
||||
|
|
Loading…
Reference in a new issue