aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-06-27 15:43:56 -0400
committerMike Frysinger <vapier@gentoo.org>2011-07-23 01:18:31 -0400
commitda31d6fb46b7671622dbfd44c7f27b0c97dc2faa (patch)
tree160b8fe6626b37113b2df9be6dae2a0af9f6847b
parent9466a0510a5445d81eaf33affc20e2f7e2e718fb (diff)
Blackfin: dpmc: don't save/restore scratch registers
The Blackfin C ABI says we do not need to save/restore R0-R3 and P0-P2 as they are available as scratch registers. So don't bother. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--arch/blackfin/mach-common/dpmc_modes.S12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/blackfin/mach-common/dpmc_modes.S b/arch/blackfin/mach-common/dpmc_modes.S
index fa0df0ac3aea..2d1c3ce19fb1 100644
--- a/arch/blackfin/mach-common/dpmc_modes.S
+++ b/arch/blackfin/mach-common/dpmc_modes.S
@@ -12,8 +12,8 @@
12.section .l1.text 12.section .l1.text
13 13
14ENTRY(_sleep_mode) 14ENTRY(_sleep_mode)
15 [--SP] = ( R7:0, P5:0 ); 15 [--SP] = (R7:4, P5:3);
16 [--SP] = RETS; 16 [--SP] = RETS;
17 17
18 call _set_sic_iwr; 18 call _set_sic_iwr;
19 19
@@ -46,7 +46,7 @@ ENTRY(_sleep_mode)
46 call _test_pll_locked; 46 call _test_pll_locked;
47 47
48 RETS = [SP++]; 48 RETS = [SP++];
49 ( R7:0, P5:0 ) = [SP++]; 49 (R7:4, P5:3) = [SP++];
50 RTS; 50 RTS;
51ENDPROC(_sleep_mode) 51ENDPROC(_sleep_mode)
52 52
@@ -81,8 +81,8 @@ ENTRY(_hibernate_mode)
81ENDPROC(_hibernate_mode) 81ENDPROC(_hibernate_mode)
82 82
83ENTRY(_sleep_deeper) 83ENTRY(_sleep_deeper)
84 [--SP] = ( R7:0, P5:0 ); 84 [--SP] = (R7:4, P5:3);
85 [--SP] = RETS; 85 [--SP] = RETS;
86 86
87 CLI R4; 87 CLI R4;
88 88
@@ -175,7 +175,7 @@ ENTRY(_sleep_deeper)
175 STI R4; 175 STI R4;
176 176
177 RETS = [SP++]; 177 RETS = [SP++];
178 ( R7:0, P5:0 ) = [SP++]; 178 (R7:4, P5:3) = [SP++];
179 RTS; 179 RTS;
180ENDPROC(_sleep_deeper) 180ENDPROC(_sleep_deeper)
181 181