Skip to content

Commit

Permalink
Blackfin: dpmc: don't save/restore scratch registers
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mike Frysinger committed Jul 23, 2011
1 parent 9466a05 commit da31d6f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions arch/blackfin/mach-common/dpmc_modes.S
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
.section .l1.text

ENTRY(_sleep_mode)
[--SP] = ( R7:0, P5:0 );
[--SP] = RETS;
[--SP] = (R7:4, P5:3);
[--SP] = RETS;

call _set_sic_iwr;

Expand Down Expand Up @@ -46,7 +46,7 @@ ENTRY(_sleep_mode)
call _test_pll_locked;

RETS = [SP++];
( R7:0, P5:0 ) = [SP++];
(R7:4, P5:3) = [SP++];
RTS;
ENDPROC(_sleep_mode)

Expand Down Expand Up @@ -81,8 +81,8 @@ ENTRY(_hibernate_mode)
ENDPROC(_hibernate_mode)

ENTRY(_sleep_deeper)
[--SP] = ( R7:0, P5:0 );
[--SP] = RETS;
[--SP] = (R7:4, P5:3);
[--SP] = RETS;

CLI R4;

Expand Down Expand Up @@ -175,7 +175,7 @@ ENTRY(_sleep_deeper)
STI R4;

RETS = [SP++];
( R7:0, P5:0 ) = [SP++];
(R7:4, P5:3) = [SP++];
RTS;
ENDPROC(_sleep_deeper)

Expand Down

0 comments on commit da31d6f

Please sign in to comment.