aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev/fsl_rio.c
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2016-10-13 01:42:53 -0400
committerMichael Ellerman <mpe@ellerman.id.au>2016-11-13 19:11:51 -0500
commit24bfa6a9e0d4fe414dfc4ad06c93e10c4c37194e (patch)
tree13368fce0b6bc8558aad558dc275368f2dc44afc /arch/powerpc/sysdev/fsl_rio.c
parent997e200182347d2cc7e37bc43eaafe249b4571b9 (diff)
powerpc: EX_TABLE macro for exception tables
This macro is taken from s390, and allows more flexibility in changing exception table format. mpe: Put it in ppc_asm.h and only define one version using stringinfy_in_c(). Add some empty definitions and headers to keep the selftests happy. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/sysdev/fsl_rio.c')
-rw-r--r--arch/powerpc/sysdev/fsl_rio.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/powerpc/sysdev/fsl_rio.c b/arch/powerpc/sysdev/fsl_rio.c
index 3cc7cace194a..87fee0c8eb21 100644
--- a/arch/powerpc/sysdev/fsl_rio.c
+++ b/arch/powerpc/sysdev/fsl_rio.c
@@ -80,10 +80,8 @@
80 "3: li %1,-1\n" \ 80 "3: li %1,-1\n" \
81 " li %0,%3\n" \ 81 " li %0,%3\n" \
82 " b 2b\n" \ 82 " b 2b\n" \
83 ".section __ex_table,\"a\"\n" \ 83 ".previous\n" \
84 PPC_LONG_ALIGN "\n" \ 84 EX_TABLE(1b, 3b) \
85 PPC_LONG "1b,3b\n" \
86 ".text" \
87 : "=r" (err), "=r" (x) \ 85 : "=r" (err), "=r" (x) \
88 : "b" (addr), "i" (-EFAULT), "0" (err)) 86 : "b" (addr), "i" (-EFAULT), "0" (err))
89 87