Pārlūkot izejas kodu

m68k/amiga: Chip RAM - Offset resource end by CHIP_PHYSADDR

Technically, the end of Chip RAM should be offset by CHIP_PHYSADDR (which is
zero).

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Geert Uytterhoeven 14 gadi atpakaļ
vecāks
revīzija
1dad6c7bd7
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      arch/m68k/amiga/chipram.c

+ 1 - 1
arch/m68k/amiga/chipram.c

@@ -34,7 +34,7 @@ void __init amiga_chip_init(void)
 	if (!AMIGAHW_PRESENT(CHIP_RAM))
 	if (!AMIGAHW_PRESENT(CHIP_RAM))
 		return;
 		return;
 
 
-	chipram_res.end = amiga_chip_size-1;
+	chipram_res.end = CHIP_PHYSADDR + amiga_chip_size - 1;
 	request_resource(&iomem_resource, &chipram_res);
 	request_resource(&iomem_resource, &chipram_res);
 
 
 	atomic_set(&chipavail, amiga_chip_size);
 	atomic_set(&chipavail, amiga_chip_size);