sh: Expose physical addressing mode through cpuinfo.
authorPaul Mundt <lethal@linux-sh.org>
Tue, 26 Oct 2010 05:44:58 +0000 (14:44 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 26 Oct 2010 05:44:58 +0000 (14:44 +0900)
commit2f98492c5375e906e48c78d88351f45bb11b6a8a
tree13373dbdc047a2b70623dbf2cd3181865266f976
parentb18cae4224bde7e5a332c19bc99247b2098ea232
sh: Expose physical addressing mode through cpuinfo.

CPUs can be in either the legacy 29-bit or 32-bit physical addressing
modes. This follows the x86 approach of tracking the phys bits in cpuinfo
and exposing it to userspace through procfs.

This change was requested to permit kexec-tools to detect the physical
addressing mode in order to determine the appropriate address mangling.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/processor.h
arch/sh/kernel/cpu/init.c
arch/sh/kernel/setup.c