sparc: Consistently use 'wr' and 'rd' instructions for ASRs.

For consistency, don't use 'mov'.

Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
David S. Miller
2013-04-06 17:51:48 -04:00
parent d6d88bae97
commit 598ec971dd
2 changed files with 5 additions and 5 deletions

View File

@@ -48,7 +48,7 @@ void pmc_leon_idle_fixup(void)
*/
register unsigned int address = (unsigned int)leon3_irqctrl_regs;
__asm__ __volatile__ (
"mov %%g0, %%asr19\n"
"wr %%g0, %%asr19\n"
"lda [%0] %1, %%g0\n"
:
: "r"(address), "i"(ASI_LEON_BYPASS));
@@ -61,7 +61,7 @@ void pmc_leon_idle_fixup(void)
void pmc_leon_idle(void)
{
/* For systems without power-down, this will be no-op */
__asm__ __volatile__ ("mov %g0, %asr19\n\t");
__asm__ __volatile__ ("wr %g0, %asr19\n\t");
}
/* Install LEON Power Down function */