diff options
author | Michal Simek <monstr@monstr.eu> | 2010-06-22 11:52:47 -0400 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2010-08-04 04:30:07 -0400 |
commit | 66f7de8634b39fb685556419fc12522e96990d32 (patch) | |
tree | d6d9cebc4d3d943d05f02e71c05cc8017538e71a /arch/microblaze | |
parent | c318d483b3d9cf68d791b4024760cb171dae1215 (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')
-rw-r--r-- | arch/microblaze/kernel/entry.S | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/arch/microblaze/kernel/entry.S b/arch/microblaze/kernel/entry.S index ff8d9872c774..16cb4f1d2338 100644 --- a/arch/microblaze/kernel/entry.S +++ b/arch/microblaze/kernel/entry.S | |||
@@ -48,56 +48,56 @@ | |||
48 | */ | 48 | */ |
49 | #if CONFIG_XILINX_MICROBLAZE0_USE_MSR_INSTR | 49 | #if CONFIG_XILINX_MICROBLAZE0_USE_MSR_INSTR |
50 | .macro clear_bip | 50 | .macro clear_bip |
51 | msrclr r11, MSR_BIP | 51 | msrclr r0, MSR_BIP |
52 | nop | 52 | nop |
53 | .endm | 53 | .endm |
54 | 54 | ||
55 | .macro set_bip | 55 | .macro set_bip |
56 | msrset r11, MSR_BIP | 56 | msrset r0, MSR_BIP |
57 | nop | 57 | nop |
58 | .endm | 58 | .endm |
59 | 59 | ||
60 | .macro clear_eip | 60 | .macro clear_eip |
61 | msrclr r11, MSR_EIP | 61 | msrclr r0, MSR_EIP |
62 | nop | 62 | nop |
63 | .endm | 63 | .endm |
64 | 64 | ||
65 | .macro set_ee | 65 | .macro set_ee |
66 | msrset r11, MSR_EE | 66 | msrset r0, MSR_EE |
67 | nop | 67 | nop |
68 | .endm | 68 | .endm |
69 | 69 | ||
70 | .macro disable_irq | 70 | .macro disable_irq |
71 | msrclr r11, MSR_IE | 71 | msrclr r0, MSR_IE |
72 | nop | 72 | nop |
73 | .endm | 73 | .endm |
74 | 74 | ||
75 | .macro enable_irq | 75 | .macro enable_irq |
76 | msrset r11, MSR_IE | 76 | msrset r0, MSR_IE |
77 | nop | 77 | nop |
78 | .endm | 78 | .endm |
79 | 79 | ||
80 | .macro set_ums | 80 | .macro set_ums |
81 | msrset r11, MSR_UMS | 81 | msrset r0, MSR_UMS |
82 | nop | 82 | nop |
83 | msrclr r11, MSR_VMS | 83 | msrclr r0, MSR_VMS |
84 | nop | 84 | nop |
85 | .endm | 85 | .endm |
86 | 86 | ||
87 | .macro set_vms | 87 | .macro set_vms |
88 | msrclr r11, MSR_UMS | 88 | msrclr r0, MSR_UMS |
89 | nop | 89 | nop |
90 | msrset r11, MSR_VMS | 90 | msrset r0, MSR_VMS |
91 | nop | 91 | nop |
92 | .endm | 92 | .endm |
93 | 93 | ||
94 | .macro clear_ums | 94 | .macro clear_ums |
95 | msrclr r11, MSR_UMS | 95 | msrclr r0, MSR_UMS |
96 | nop | 96 | nop |
97 | .endm | 97 | .endm |
98 | 98 | ||
99 | .macro clear_vms_ums | 99 | .macro clear_vms_ums |
100 | msrclr r11, MSR_VMS | MSR_UMS | 100 | msrclr r0, MSR_VMS | MSR_UMS |
101 | nop | 101 | nop |
102 | .endm | 102 | .endm |
103 | #else | 103 | #else |