aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/include
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2012-05-25 17:20:06 -0400
committerDavid S. Miller <davem@davemloft.net>2012-05-28 02:52:41 -0400
commit7b372d6582ca3bf41a1af9f168f3a852f3d7b21d (patch)
tree3a3269b976d713dd728b119e388f8f262c533138 /arch/sparc/include
parentec24158eac0ae2786ebf1e0afa8f3664891319ba (diff)
sparc32: implement proper LEON support in head_32 (before highmem)
Use PSR to check if the CPU is LEON and jump to LEON specific code in this case. Added a few constants to psr.h to increase 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')
-rw-r--r--arch/sparc/include/asm/psr.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/psr.h b/arch/sparc/include/asm/psr.h
index b8c0e5f0a66b..c02c735d4ebe 100644
--- a/arch/sparc/include/asm/psr.h
+++ b/arch/sparc/include/asm/psr.h
@@ -35,6 +35,12 @@
35#define PSR_VERS 0x0f000000 /* cpu-version field */ 35#define PSR_VERS 0x0f000000 /* cpu-version field */
36#define PSR_IMPL 0xf0000000 /* cpu-implementation field */ 36#define PSR_IMPL 0xf0000000 /* cpu-implementation field */
37 37
38#define PSR_IMPL_SHIFT 28
39#define PSR_IMPL_SHIFTED_MASK 0xf
40
41#define PSR_IMPL_TI 0x4
42#define PSR_IMPL_LEON 0xf
43
38#ifdef __KERNEL__ 44#ifdef __KERNEL__
39 45
40#ifndef __ASSEMBLY__ 46#ifndef __ASSEMBLY__