MIPS: SGI-IP22: set PHYS_OFFSET to memory start
authorThomas Bogendoerfer <tbogendoerfer@suse.de>
Wed, 9 Oct 2019 13:27:16 +0000 (15:27 +0200)
committerPaul Burton <paul.burton@mips.com>
Wed, 9 Oct 2019 21:55:55 +0000 (14:55 -0700)
IP22 started at physical 0x08000000. To avoid wasting memory for
page structs set PHYS_OFFSET.

Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@kernel.org>
Cc: linux-mips@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
arch/mips/include/asm/mach-ip22/spaces.h

index 7f9fa6f..78d0335 100644 (file)
 #ifndef _ASM_MACH_IP22_SPACES_H
 #define _ASM_MACH_IP22_SPACES_H
 
+#define PHYS_OFFSET     _AC(0x08000000, UL)
 
 #ifdef CONFIG_64BIT
 
-#define PAGE_OFFSET            0xffffffff80000000UL
-
 #define CAC_BASE               0xffffffff80000000
 #define IO_BASE                        0xffffffffa0000000
 #define UNCAC_BASE             0xffffffffa0000000