Skip to content

Commit

Permalink
powerpc/64s/paca: EX_LR can be merged with EX_DAR
Browse files Browse the repository at this point in the history
EX_LR is used only for a small section of the SLB miss handler.
Merge it with EX_DAR.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
  • Loading branch information
Nicholas Piggin authored and Michael Ellerman committed Jun 20, 2017
1 parent 36670fc commit dbeea1d
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions arch/powerpc/include/asm/exception-64s.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,19 @@
#define EX_DSISR 48
#define EX_CCR 52
#define EX_R3 56
#define EX_LR 64
#define EX_CFAR 72
#define EX_PPR 80 /* SMT thread status register (priority) */
#define EX_CTR 88
#define EX_CFAR 64
#define EX_PPR 72
#define EX_CTR 80

#define EX_SIZE 12 /* size in u64 units */
#define EX_SIZE 11 /* size in u64 units */

/*
* EX_LR is only used in EXSLB and where it does not overlap with EX_DAR
* EX_CCR similarly with DSISR, but being 4 byte registers there is a hole
* in the save area so it's not necessary to overlap them. Could be used
* for future savings though if another 4 byte register was to be saved.
*/
#define EX_LR EX_DAR

#ifdef CONFIG_RELOCATABLE
#define __EXCEPTION_RELON_PROLOG_PSERIES_1(label, h) \
Expand Down

0 comments on commit dbeea1d

Please sign in to comment.