Skip to content

Commit

Permalink
MIPS: SGI-IP22: set PHYS_OFFSET to memory start
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Thomas Bogendoerfer authored and paulburton committed Oct 9, 2019
1 parent 351889d commit 931e1bf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/mips/include/asm/mach-ip22/spaces.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@
#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
Expand Down

0 comments on commit 931e1bf

Please sign in to comment.