MIPS: 64-bit: Detect virtual memory size
authorGuenter Roeck <guenter.roeck@ericsson.com>
Tue, 2 Feb 2010 16:52:20 +0000 (08:52 -0800)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 2 Feb 2010 18:56:23 +0000 (19:56 +0100)
commit91dfc423cc8cfd399fb308a837102a7ab7fa067e
tree21c75672185153084a5ac8e38ca3938ca0cf4ac1
parentba284b1f199ef7121489010da6614561a679eab6
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>
arch/mips/include/asm/cpu-features.h
arch/mips/include/asm/cpu-info.h
arch/mips/include/asm/pgtable-64.h
arch/mips/kernel/cpu-probe.c