summaryrefslogtreecommitdiff
path: root/arch/sparc/include/asm/psr.h
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2012-05-26 01:20:11 +0400
committerDavid S. Miller <davem@davemloft.net>2012-05-28 10:52:45 +0400
commitd87d8c11f347e743f0223d16c8ec57ef7e0274b2 (patch)
tree0de090f63821b0acbcc1d197b48485ff8ed919e5 /arch/sparc/include/asm/psr.h
parentb08b5c9c9b35c938e8a94d9232e05a7f69a1dba5 (diff)
downloadlinux-d87d8c11f347e743f0223d16c8ec57ef7e0274b2.tar.xz
sparc32: handle leon in cpu.c
A few hardcoded constant were replaced by symbolic versions to improve readability Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Cc: Daniel Hellstrom <daniel@gaisler.com> Cc: Konrad Eisele <konrad@gaisler.com>
Diffstat (limited to 'arch/sparc/include/asm/psr.h')
-rw-r--r--arch/sparc/include/asm/psr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/psr.h b/arch/sparc/include/asm/psr.h
index c02c735d4ebe..cee7ed9c927d 100644
--- a/arch/sparc/include/asm/psr.h
+++ b/arch/sparc/include/asm/psr.h
@@ -35,7 +35,9 @@
#define PSR_VERS 0x0f000000 /* cpu-version field */
#define PSR_IMPL 0xf0000000 /* cpu-implementation field */
+#define PSR_VERS_SHIFT 24
#define PSR_IMPL_SHIFT 28
+#define PSR_VERS_SHIFTED_MASK 0xf
#define PSR_IMPL_SHIFTED_MASK 0xf
#define PSR_IMPL_TI 0x4