Re: [PATCH] Add MIPS64R2 core support.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On 09-04-2012 20:04, Steven J. Hill wrote:

From: "Steven J. Hill"<sjhill@xxxxxxxx>

Signed-off-by: Leonid Yegoshin<yegoshin@xxxxxxxx>
Signed-off-by: Steven J. Hill<sjhill@xxxxxxxx>
  arch/mips/Kconfig            |   29 +++++++++++++++++++++++------
  arch/mips/include/asm/cpu.h  |    2 +-
  arch/mips/kernel/cpu-probe.c |    4 ++++
  arch/mips/kernel/traps.c     |    1 +
  4 files changed, 29 insertions(+), 7 deletions(-)

diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 991de91..fae33f3 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -282,6 +282,7 @@ config MIPS_MALTA
  	select SYS_HAS_CPU_MIPS32_R1
  	select SYS_HAS_CPU_MIPS32_R2
  	select SYS_HAS_CPU_MIPS64_R1
+	select SYS_HAS_CPU_MIPS64_R2
  	select SYS_HAS_CPU_RM7000
@@ -1761,6 +1762,22 @@ config 64BIT


+config 64BIT_PHYS_ADDR
+	bool "Kernel supports 64 bit physical addresses" if EXPERIMENTAL
+	depends on 64BIT

This option is selected on 32-bit CPUs like Alchemy, which has 36-bit physical address. It will cause a warning about unmet direct dependencies then.

+	help
+	  Defines 64 bit physical addresses in kernel.
+	  Increases page table sizes.
+	  It is an alternative for HIGHMEM usage of huge physical memory.
+	  Requires 64bit capable CPU  and 64 bit kernel code model.

   No, it really doesn't.

+	  Note: without this option kernel can support up to 4GB physical
+	  memory for 4KB pages and up to 64GB for 64KB pages.
+       def_bool 64BIT_PHYS_ADDR
  	prompt "Kernel page size"
  	default PAGE_SIZE_4KB

WBR, Sergei

[Linux MIPS Home]     [LKML Archive]     [Linux ARM]     [Linux]     [Git]     [Photo]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

Add to Google Powered by Linux