aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/reg.h
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2005-10-11 08:08:12 -0400
committerPaul Mackerras <paulus@samba.org>2005-10-11 08:08:12 -0400
commitfd582ec88eb8d2d907876603e4ecebe6eab330d9 (patch)
treebafacc1916098001051b8235722daa6b9b52e63a /include/asm-powerpc/reg.h
parent35d81a4bfe28a6ea81c9f67c9ce40543124ded0b (diff)
ppc: Various minor compile fixes
This fixes up a variety of minor problems in compiling with ARCH=ppc arising from using the merged versions of various header files. A lot of the changes are just adding #include <asm/machdep.h> to files that use ppc_md or smp_ops_t. This also arranges for us to use semaphore.c, vecemu.c, vector.S and fpu.S from arch/powerpc/kernel when compiling with ARCH=ppc. Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/reg.h')
-rw-r--r--include/asm-powerpc/reg.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-powerpc/reg.h b/include/asm-powerpc/reg.h
index ff619630dff9..06a1f0f2db21 100644
--- a/include/asm-powerpc/reg.h
+++ b/include/asm-powerpc/reg.h
@@ -74,7 +74,9 @@
74#define MSR_DR __MASK(MSR_DR_LG) /* Data Relocate */ 74#define MSR_DR __MASK(MSR_DR_LG) /* Data Relocate */
75#define MSR_PE __MASK(MSR_PE_LG) /* Protection Enable */ 75#define MSR_PE __MASK(MSR_PE_LG) /* Protection Enable */
76#define MSR_PX __MASK(MSR_PX_LG) /* Protection Exclusive Mode */ 76#define MSR_PX __MASK(MSR_PX_LG) /* Protection Exclusive Mode */
77#ifndef MSR_PMM
77#define MSR_PMM __MASK(MSR_PMM_LG) /* Performance monitor */ 78#define MSR_PMM __MASK(MSR_PMM_LG) /* Performance monitor */
79#endif
78#define MSR_RI __MASK(MSR_RI_LG) /* Recoverable Exception */ 80#define MSR_RI __MASK(MSR_RI_LG) /* Recoverable Exception */
79#define MSR_LE __MASK(MSR_LE_LG) /* Little Endian */ 81#define MSR_LE __MASK(MSR_LE_LG) /* Little Endian */
80 82
@@ -87,11 +89,13 @@
87 89
88#else /* 32-bit */ 90#else /* 32-bit */
89/* Default MSR for kernel mode. */ 91/* Default MSR for kernel mode. */
92#ifndef MSR_KERNEL /* reg_booke.h also defines this */
90#ifdef CONFIG_APUS_FAST_EXCEPT 93#ifdef CONFIG_APUS_FAST_EXCEPT
91#define MSR_KERNEL (MSR_ME|MSR_IP|MSR_RI|MSR_IR|MSR_DR) 94#define MSR_KERNEL (MSR_ME|MSR_IP|MSR_RI|MSR_IR|MSR_DR)
92#else 95#else
93#define MSR_KERNEL (MSR_ME|MSR_RI|MSR_IR|MSR_DR) 96#define MSR_KERNEL (MSR_ME|MSR_RI|MSR_IR|MSR_DR)
94#endif 97#endif
98#endif
95 99
96#define MSR_USER (MSR_KERNEL|MSR_PR|MSR_EE) 100#define MSR_USER (MSR_KERNEL|MSR_PR|MSR_EE)
97#endif 101#endif