aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2014-07-23 15:38:02 -0400
committerScott Wood <scottwood@freescale.com>2014-07-29 20:24:38 -0400
commit7251a24e4d3acf2d7826e1c42fe84258c312a742 (patch)
treefd13c255b9e1a71a70bad1ca7de61de7cdfd55f4 /arch/powerpc
parentcd1154770ba984f4c766cac5ea42c38880080b1d (diff)
powerpc/booke: Define MSR bits the same way as reg.h
This ensures that all MSR definitions are consistently unsigned long, and that MSR_CM does not become 0xffffffff80000000 (this is usually harmless because MSR is 32-bit on booke and is mainly noticeable when debugging, but still I'd rather avoid it). Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/include/asm/reg_booke.h28
1 files changed, 19 insertions, 9 deletions
diff --git a/arch/powerpc/include/asm/reg_booke.h b/arch/powerpc/include/asm/reg_booke.h
index 61482925fb52..da429822b186 100644
--- a/arch/powerpc/include/asm/reg_booke.h
+++ b/arch/powerpc/include/asm/reg_booke.h
@@ -16,15 +16,25 @@
16#define __ASM_POWERPC_REG_BOOKE_H__ 16#define __ASM_POWERPC_REG_BOOKE_H__
17 17
18/* Machine State Register (MSR) Fields */ 18/* Machine State Register (MSR) Fields */
19#define MSR_GS (1<<28) /* Guest state */ 19#define MSR_GS_LG 28 /* Guest state */
20#define MSR_UCLE (1<<26) /* User-mode cache lock enable */ 20#define MSR_UCLE_LG 26 /* User-mode cache lock enable */
21#define MSR_SPE (1<<25) /* Enable SPE */ 21#define MSR_SPE_LG 25 /* Enable SPE */
22#define MSR_DWE (1<<10) /* Debug Wait Enable */ 22#define MSR_DWE_LG 10 /* Debug Wait Enable */
23#define MSR_UBLE (1<<10) /* BTB lock enable (e500) */ 23#define MSR_UBLE_LG 10 /* BTB lock enable (e500) */
24#define MSR_IS MSR_IR /* Instruction Space */ 24#define MSR_IS_LG MSR_IR_LG /* Instruction Space */
25#define MSR_DS MSR_DR /* Data Space */ 25#define MSR_DS_LG MSR_DR_LG /* Data Space */
26#define MSR_PMM (1<<2) /* Performance monitor mark bit */ 26#define MSR_PMM_LG 2 /* Performance monitor mark bit */
27#define MSR_CM (1<<31) /* Computation Mode (0=32-bit, 1=64-bit) */ 27#define MSR_CM_LG 31 /* Computation Mode (0=32-bit, 1=64-bit) */
28
29#define MSR_GS __MASK(MSR_GS_LG)
30#define MSR_UCLE __MASK(MSR_UCLE_LG)
31#define MSR_SPE __MASK(MSR_SPE_LG)
32#define MSR_DWE __MASK(MSR_DWE_LG)
33#define MSR_UBLE __MASK(MSR_UBLE_LG)
34#define MSR_IS __MASK(MSR_IS_LG)
35#define MSR_DS __MASK(MSR_DS_LG)
36#define MSR_PMM __MASK(MSR_PMM_LG)
37#define MSR_CM __MASK(MSR_CM_LG)
28 38
29#if defined(CONFIG_PPC_BOOK3E_64) 39#if defined(CONFIG_PPC_BOOK3E_64)
30#define MSR_64BIT MSR_CM 40#define MSR_64BIT MSR_CM