linux-mips
[Top] [All Lists]

Re: [PATCH] Add MIPS64R2 core support.

To: "Steven J. Hill" <sjhill@mips.com>
Subject: Re: [PATCH] Add MIPS64R2 core support.
From: Sergei Shtylyov <sshtylyov@mvista.com>
Date: Tue, 10 Apr 2012 15:49:28 +0400
Cc: linux-mips@linux-mips.org, ralf@linux-mips.org, Leonid Yegoshin <yegoshin@mips.com>
In-reply-to: <1333987461-822-1-git-send-email-sjhill@mips.com>
References: <1333987461-822-1-git-send-email-sjhill@mips.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20120327 Thunderbird/11.0.1
Hello.

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

From: "Steven J. Hill"<sjhill@mips.com>

Signed-off-by: Leonid Yegoshin<yegoshin@mips.com>
Signed-off-by: Steven J. Hill<sjhill@mips.com>
---
  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_NEVADA
        select SYS_HAS_CPU_RM7000
        select SYS_HAS_EARLY_PRINTK
@@ -1761,6 +1762,22 @@ config 64BIT

  endchoice

+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.
+
+config ARCH_PHYS_ADDR_T_64BIT
+       def_bool 64BIT_PHYS_ADDR
+
  choice
        prompt "Kernel page size"
        default PAGE_SIZE_4KB

WBR, Sergei

<Prev in Thread] Current Thread [Next in Thread>