riscv: consolidate __ex_table construction

Consolidate all the __ex_table constuction code with a _ASM_EXTABLE
helper.

There should be no functional change as a result of this patch.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Reviewed-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
This commit is contained in:
Jisheng Zhang 2021-11-18 19:22:27 +08:00 • committed by Palmer Dabbelt
commit f8f2ad02ee
No known key found for this signature in database
GPG key ID: 2E1319F35FBB1889
2 changed files with 15 additions and 27 deletions