Commit b5bbeb23 authored by Paul Mackerras's avatar Paul Mackerras

powerpc: Use SPRN_xxx rather than xxx for SPR numbers

This changes symbols like HID0, SPRG3, SRR0, SRR1 etc. that refer to
special purpose registers to SPRN_HID0, SPRN_SPRG3, etc.  Using the
SPRN_ symbols clutters the namespace less, and the forthcoming merge
of asm/processor.h and asm/reg.h is going to remove the non-SPRN_
versions.
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 05f62a5c
This diff is collapsed.
...@@ -70,7 +70,7 @@ void power4_enable_pmcs(void) ...@@ -70,7 +70,7 @@ void power4_enable_pmcs(void)
{ {
unsigned long hid0; unsigned long hid0;
hid0 = mfspr(HID0); hid0 = mfspr(SPRN_HID0);
hid0 |= 1UL << (63 - 20); hid0 |= 1UL << (63 - 20);
/* POWER4 requires the following sequence */ /* POWER4 requires the following sequence */
...@@ -83,6 +83,6 @@ void power4_enable_pmcs(void) ...@@ -83,6 +83,6 @@ void power4_enable_pmcs(void)
"mfspr %0, %1\n" "mfspr %0, %1\n"
"mfspr %0, %1\n" "mfspr %0, %1\n"
"mfspr %0, %1\n" "mfspr %0, %1\n"
"isync" : "=&r" (hid0) : "i" (HID0), "0" (hid0): "isync" : "=&r" (hid0) : "i" (SPRN_HID0), "0" (hid0):
"memory"); "memory");
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment