Skip to content

Commit

Permalink
ARCv2: mm: TLB Miss optim: Use double world load/stores LDD/STD
Browse files Browse the repository at this point in the history
Signed-off-by: Vineet Gupta <[email protected]>
  • Loading branch information
vineetgarc committed Oct 28, 2019
1 parent cfd9d70 commit 0fb1f35
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions arch/arc/mm/tlbex.S
Original file line number Diff line number Diff line change
Expand Up @@ -122,17 +122,27 @@ ex_saved_reg1:
#else /* ARCv2 */

.macro TLBMISS_FREEUP_REGS
#ifdef CONFIG_ARC_HAS_LL64
std r0, [sp, -16]
std r2, [sp, -8]
#else
PUSH r0
PUSH r1
PUSH r2
PUSH r3
#endif
.endm

.macro TLBMISS_RESTORE_REGS
#ifdef CONFIG_ARC_HAS_LL64
ldd r0, [sp, -16]
ldd r2, [sp, -8]
#else
POP r3
POP r2
POP r1
POP r0
#endif
.endm

#endif
Expand Down

0 comments on commit 0fb1f35

Please sign in to comment.