diff options
author | Tseng-Hui (Frank) Lin <thlin@linux.vnet.ibm.com> | 2011-03-02 02:20:50 -0500 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-03-04 02:19:05 -0500 |
commit | 6edc642ebee87dfceb97050d51c5ab1fe539a597 (patch) | |
tree | e6aa0ebef64be507d4bb563fdbb1b80d6a1e7af1 /arch/powerpc/include/asm/reg.h | |
parent | a5cf4b08b6a4568570c4a2a712497ec49009661c (diff) |
powerpc: Cleanup definition of the PID register
Move SPRN_PID declearations in various locations into one place.
Signed-off-by: Tseng-Hui (Frank) Lin <thlin@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm/reg.h')
-rw-r--r-- | arch/powerpc/include/asm/reg.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/reg.h b/arch/powerpc/include/asm/reg.h index 125fc1ad665d..bd0d36e1c945 100644 --- a/arch/powerpc/include/asm/reg.h +++ b/arch/powerpc/include/asm/reg.h | |||
@@ -170,6 +170,16 @@ | |||
170 | #define SPEFSCR_FRMC 0x00000003 /* Embedded FP rounding mode control */ | 170 | #define SPEFSCR_FRMC 0x00000003 /* Embedded FP rounding mode control */ |
171 | 171 | ||
172 | /* Special Purpose Registers (SPRNs)*/ | 172 | /* Special Purpose Registers (SPRNs)*/ |
173 | |||
174 | #ifdef CONFIG_40x | ||
175 | #define SPRN_PID 0x3B1 /* Process ID */ | ||
176 | #else | ||
177 | #define SPRN_PID 0x030 /* Process ID */ | ||
178 | #ifdef CONFIG_BOOKE | ||
179 | #define SPRN_PID0 SPRN_PID/* Process ID Register 0 */ | ||
180 | #endif | ||
181 | #endif | ||
182 | |||
173 | #define SPRN_CTR 0x009 /* Count Register */ | 183 | #define SPRN_CTR 0x009 /* Count Register */ |
174 | #define SPRN_DSCR 0x11 | 184 | #define SPRN_DSCR 0x11 |
175 | #define SPRN_CTRLF 0x088 | 185 | #define SPRN_CTRLF 0x088 |