summaryrefslogtreecommitdiffstats
path: root/arch/sh/include
diff options
context:
space:
mode:
authorPaul Mundt2010-10-26 07:44:58 +0200
committerPaul Mundt2010-10-26 07:44:58 +0200
commit2f98492c5375e906e48c78d88351f45bb11b6a8a (patch)
tree13373dbdc047a2b70623dbf2cd3181865266f976 /arch/sh/include
parentMerge branch 'for-next' of git://android.git.kernel.org/kernel/tegra (diff)
downloadkernel-qcow2-linux-2f98492c5375e906e48c78d88351f45bb11b6a8a.tar.gz
kernel-qcow2-linux-2f98492c5375e906e48c78d88351f45bb11b6a8a.tar.xz
kernel-qcow2-linux-2f98492c5375e906e48c78d88351f45bb11b6a8a.zip
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>
Diffstat (limited to 'arch/sh/include')
-rw-r--r--arch/sh/include/asm/processor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sh/include/asm/processor.h b/arch/sh/include/asm/processor.h
index 0a58cb25a658..c9e7cbc4768a 100644
--- a/arch/sh/include/asm/processor.h
+++ b/arch/sh/include/asm/processor.h
@@ -89,6 +89,7 @@ struct sh_cpuinfo {
struct task_struct *idle;
#endif
+ unsigned int phys_bits;
unsigned long flags;
} __attribute__ ((aligned(L1_CACHE_BYTES)));