aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2013-04-06 17:51:48 -0400
committerDavid S. Miller <davem@davemloft.net>2013-04-06 17:51:48 -0400
commit598ec971ddcf7dcb0c381230e69a39c75b7fac1a (patch)
treecc8c1268d7d3a27f51e0a13adc04d68375eb85a8 /arch/sparc
parentd6d88bae97d2e1c44ef9e2ae3f22de82fa6e11c5 (diff)
sparc: Consistently use 'wr' and 'rd' instructions for ASRs.
For consistency, don't use 'mov'. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc')
-rw-r--r--arch/sparc/include/asm/head_32.h6
-rw-r--r--arch/sparc/kernel/leon_pmc.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/arch/sparc/include/asm/head_32.h b/arch/sparc/include/asm/head_32.h
index a76874838f61..5f1dbe315bc8 100644
--- a/arch/sparc/include/asm/head_32.h
+++ b/arch/sparc/include/asm/head_32.h
@@ -55,15 +55,15 @@
55 55
56/* The Get Condition Codes software trap for userland. */ 56/* The Get Condition Codes software trap for userland. */
57#define GETCC_TRAP \ 57#define GETCC_TRAP \
58 b getcc_trap_handler; mov %psr, %l0; nop; nop; 58 b getcc_trap_handler; rd %psr, %l0; nop; nop;
59 59
60/* The Set Condition Codes software trap for userland. */ 60/* The Set Condition Codes software trap for userland. */
61#define SETCC_TRAP \ 61#define SETCC_TRAP \
62 b setcc_trap_handler; mov %psr, %l0; nop; nop; 62 b setcc_trap_handler; rd %psr, %l0; nop; nop;
63 63
64/* The Get PSR software trap for userland. */ 64/* The Get PSR software trap for userland. */
65#define GETPSR_TRAP \ 65#define GETPSR_TRAP \
66 mov %psr, %i0; jmp %l2; rett %l2 + 4; nop; 66 rd %psr, %i0; jmp %l2; rett %l2 + 4; nop;
67 67
68/* This is for hard interrupts from level 1-14, 15 is non-maskable (nmi) and 68/* This is for hard interrupts from level 1-14, 15 is non-maskable (nmi) and
69 * gets handled with another macro. 69 * gets handled with another macro.
diff --git a/arch/sparc/kernel/leon_pmc.c b/arch/sparc/kernel/leon_pmc.c
index 708bca435219..bdf53d9a8d46 100644
--- a/arch/sparc/kernel/leon_pmc.c
+++ b/arch/sparc/kernel/leon_pmc.c
@@ -48,7 +48,7 @@ void pmc_leon_idle_fixup(void)
48 */ 48 */
49 register unsigned int address = (unsigned int)leon3_irqctrl_regs; 49 register unsigned int address = (unsigned int)leon3_irqctrl_regs;
50 __asm__ __volatile__ ( 50 __asm__ __volatile__ (
51 "mov %%g0, %%asr19\n" 51 "wr %%g0, %%asr19\n"
52 "lda [%0] %1, %%g0\n" 52 "lda [%0] %1, %%g0\n"
53 : 53 :
54 : "r"(address), "i"(ASI_LEON_BYPASS)); 54 : "r"(address), "i"(ASI_LEON_BYPASS));
@@ -61,7 +61,7 @@ void pmc_leon_idle_fixup(void)
61void pmc_leon_idle(void) 61void pmc_leon_idle(void)
62{ 62{
63 /* For systems without power-down, this will be no-op */ 63 /* For systems without power-down, this will be no-op */
64 __asm__ __volatile__ ("mov %g0, %asr19\n\t"); 64 __asm__ __volatile__ ("wr %g0, %asr19\n\t");
65} 65}
66 66
67/* Install LEON Power Down function */ 67/* Install LEON Power Down function */