Commit 4a7a0a84 authored by Michael Ellerman's avatar Michael Ellerman

powerpc/64s: Move SET_SCRATCH0() into EXCEPTION_PROLOG_PSERIES()

EXCEPTION_PROLOG_PSERIES() only has two users, STD_EXCEPTION_PSERIES()
and STD_EXCEPTION_HV() both of which "call" SET_SCRATCH0(), so just
move SET_SCRATCH0() into EXCEPTION_PROLOG_PSERIES().
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 250a9350
...@@ -344,6 +344,7 @@ END_FTR_SECTION_NESTED(ftr,ftr,943) ...@@ -344,6 +344,7 @@ END_FTR_SECTION_NESTED(ftr,ftr,943)
__EXCEPTION_PROLOG_PSERIES_1_NORI(label, h) __EXCEPTION_PROLOG_PSERIES_1_NORI(label, h)
#define EXCEPTION_PROLOG_PSERIES(area, label, h, extra, vec) \ #define EXCEPTION_PROLOG_PSERIES(area, label, h, extra, vec) \
SET_SCRATCH0(r13); /* save r13 */ \
EXCEPTION_PROLOG_0(area); \ EXCEPTION_PROLOG_0(area); \
EXCEPTION_PROLOG_1(area, extra, vec); \ EXCEPTION_PROLOG_1(area, extra, vec); \
EXCEPTION_PROLOG_PSERIES_1(label, h); EXCEPTION_PROLOG_PSERIES_1(label, h);
...@@ -552,7 +553,6 @@ END_FTR_SECTION_NESTED(ftr,ftr,943) ...@@ -552,7 +553,6 @@ END_FTR_SECTION_NESTED(ftr,ftr,943)
* Exception vectors. * Exception vectors.
*/ */
#define STD_EXCEPTION_PSERIES(vec, label) \ #define STD_EXCEPTION_PSERIES(vec, label) \
SET_SCRATCH0(r13); /* save r13 */ \
EXCEPTION_PROLOG_PSERIES(PACA_EXGEN, label, \ EXCEPTION_PROLOG_PSERIES(PACA_EXGEN, label, \
EXC_STD, KVMTEST_PR, vec); \ EXC_STD, KVMTEST_PR, vec); \
...@@ -567,7 +567,6 @@ END_FTR_SECTION_NESTED(ftr,ftr,943) ...@@ -567,7 +567,6 @@ END_FTR_SECTION_NESTED(ftr,ftr,943)
EXCEPTION_PROLOG_PSERIES_1(label, EXC_STD) EXCEPTION_PROLOG_PSERIES_1(label, EXC_STD)
#define STD_EXCEPTION_HV(loc, vec, label) \ #define STD_EXCEPTION_HV(loc, vec, label) \
SET_SCRATCH0(r13); /* save r13 */ \
EXCEPTION_PROLOG_PSERIES(PACA_EXGEN, label, \ EXCEPTION_PROLOG_PSERIES(PACA_EXGEN, label, \
EXC_HV, KVMTEST_HV, vec); EXC_HV, KVMTEST_HV, vec);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment