diff options
author | Guenter Roeck <guenter.roeck@ericsson.com> | 2010-02-02 08:52:20 -0800 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2010-02-02 19:56:23 +0100 |
commit | 91dfc423cc8cfd399fb308a837102a7ab7fa067e (patch) | |
tree | 21c75672185153084a5ac8e38ca3938ca0cf4ac1 /arch/mips/include/asm/cpu-info.h | |
parent | ba284b1f199ef7121489010da6614561a679eab6 (diff) | |
download | kernel_goldelico_gta04-91dfc423cc8cfd399fb308a837102a7ab7fa067e.zip kernel_goldelico_gta04-91dfc423cc8cfd399fb308a837102a7ab7fa067e.tar.gz kernel_goldelico_gta04-91dfc423cc8cfd399fb308a837102a7ab7fa067e.tar.bz2 |
MIPS: 64-bit: Detect virtual memory size
Linux kernel 2.6.32 and later allocate address space from the top of the
kernel virtual memory address space.
This patch implements virtual memory size detection for 64 bit MIPS CPUs
to avoid resulting crashes.
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Cc: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/935/
Reviewed-by: David Daney <ddaney@caviumnetworks.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm/cpu-info.h')
-rw-r--r-- | arch/mips/include/asm/cpu-info.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/mips/include/asm/cpu-info.h b/arch/mips/include/asm/cpu-info.h index 1260443..b39def3 100644 --- a/arch/mips/include/asm/cpu-info.h +++ b/arch/mips/include/asm/cpu-info.h @@ -58,6 +58,9 @@ struct cpuinfo_mips { struct cache_desc tcache; /* Tertiary/split secondary cache */ int srsets; /* Shadow register sets */ int core; /* physical core number */ +#ifdef CONFIG_64BIT + int vmbits; /* Virtual memory size in bits */ +#endif #if defined(CONFIG_MIPS_MT_SMP) || defined(CONFIG_MIPS_MT_SMTC) /* * In the MIPS MT "SMTC" model, each TC is considered |