summaryrefslogtreecommitdiffstats
path: root/arch/microblaze/kernel
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2010-06-22 17:52:47 +0200
committerMichal Simek <monstr@monstr.eu>2010-08-04 10:30:07 +0200
commit66f7de8634b39fb685556419fc12522e96990d32 (patch)
treed6d9cebc4d3d943d05f02e71c05cc8017538e71a /arch/microblaze/kernel
parentc318d483b3d9cf68d791b4024760cb171dae1215 (diff)
microblaze: entry.S: Macro optimization
We are not working with values from MSR that's why we can discard it and use r11 for different purpose without saving/restoring. Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/kernel')
-rw-r--r--arch/microblaze/kernel/entry.S24
1 files changed, 12 insertions, 12 deletions
diff --git a/arch/microblaze/kernel/entry.S b/arch/microblaze/kernel/entry.S
index ff8d9872c77..16cb4f1d233 100644
--- a/arch/microblaze/kernel/entry.S
+++ b/arch/microblaze/kernel/entry.S
@@ -48,56 +48,56 @@
*/
#if CONFIG_XILINX_MICROBLAZE0_USE_MSR_INSTR
.macro clear_bip
- msrclr r11, MSR_BIP
+ msrclr r0, MSR_BIP
nop
.endm
.macro set_bip
- msrset r11, MSR_BIP
+ msrset r0, MSR_BIP
nop
.endm
.macro clear_eip
- msrclr r11, MSR_EIP
+ msrclr r0, MSR_EIP
nop
.endm
.macro set_ee
- msrset r11, MSR_EE
+ msrset r0, MSR_EE
nop
.endm
.macro disable_irq
- msrclr r11, MSR_IE
+ msrclr r0, MSR_IE
nop
.endm
.macro enable_irq
- msrset r11, MSR_IE
+ msrset r0, MSR_IE
nop
.endm
.macro set_ums
- msrset r11, MSR_UMS
+ msrset r0, MSR_UMS
nop
- msrclr r11, MSR_VMS
+ msrclr r0, MSR_VMS
nop
.endm
.macro set_vms
- msrclr r11, MSR_UMS
+ msrclr r0, MSR_UMS
nop
- msrset r11, MSR_VMS
+ msrset r0, MSR_VMS
nop
.endm
.macro clear_ums
- msrclr r11, MSR_UMS
+ msrclr r0, MSR_UMS
nop
.endm
.macro clear_vms_ums
- msrclr r11, MSR_VMS | MSR_UMS
+ msrclr r0, MSR_VMS | MSR_UMS
nop
.endm
#else