Skip to content

Commit

Permalink
Blackfin: dpmc: omit RETE/RETN when hibernating
Browse files Browse the repository at this point in the history
The RETE/RETN registers are only used in emulation(JTAG) and NMI nodes,
or as scratch registers, neither of which need to be saved/restored as
this code doesn't execute at those core event levels.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  • Loading branch information
Mike Frysinger committed Jul 23, 2011
1 parent 4705a25 commit 429e257
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions arch/blackfin/mach-common/dpmc_modes.S
Original file line number Diff line number Diff line change
Expand Up @@ -510,8 +510,6 @@ ENTRY(_do_hibernate)
r0 = RETI;
[--sp] = r0;
[--sp] = RETX;
[--sp] = RETN;
[--sp] = RETE;
[--sp] = SEQSTAT;

/* Save Magic, return address and Stack Pointer */
Expand All @@ -533,8 +531,6 @@ ENTRY(_do_hibernate)

/* Restore Core Registers */
SEQSTAT = [sp++];
RETE = [sp++];
RETN = [sp++];
RETX = [sp++];
r0 = [sp++];
RETI = r0;
Expand Down

0 comments on commit 429e257

Please sign in to comment.