Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit da31d6fb authored by Mike Frysinger's avatar Mike Frysinger
Browse files

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: default avatarMike Frysinger <vapier@gentoo.org>
parent 9466a051
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@
.section .l1.text

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

	call _set_sic_iwr;
@@ -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)

@@ -81,7 +81,7 @@ ENTRY(_hibernate_mode)
ENDPROC(_hibernate_mode)

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

	CLI R4;
@@ -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)