powerpc/kernel: Combine vec/loc for STD_EXCEPTION_PSERIES
The STD_EXCEPTION_PSERIES macro takes both a vector number, and a location (memory address). However both are always identical, so combine them to save repeating ourselves. This does mean an exception handler must always exist at the location in memory that matches its vector number. But that's OK because this is the "STD" macro (standard), which does exactly that. We have other macros for the other cases, eg. STD_EXCEPTION_PSERIES_OOL (out of line). Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
@@ -333,8 +333,8 @@ do_kvm_##n: \
|
||||
/*
|
||||
* Exception vectors.
|
||||
*/
|
||||
#define STD_EXCEPTION_PSERIES(loc, vec, label) \
|
||||
. = loc; \
|
||||
#define STD_EXCEPTION_PSERIES(vec, label) \
|
||||
. = vec; \
|
||||
.globl label##_pSeries; \
|
||||
label##_pSeries: \
|
||||
SET_SCRATCH0(r13); /* save r13 */ \
|
||||
|
Reference in New Issue
Block a user