All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] riscv: switch to relative extable
@ 2021-10-21 16:19 ` Jisheng Zhang
  0 siblings, 0 replies; 8+ messages in thread
From: Jisheng Zhang @ 2021-10-21 16:19 UTC (permalink / raw)
  To: Paul Walmsley, Palmer Dabbelt, Albert Ou, Masahiro Yamada,
	Michal Marek, Nick Desaulniers
  Cc: Kefeng Wang, linux-riscv, linux-kernel, linux-kbuild

From: Jisheng Zhang <jszhang@kernel.org>

Similar as other architectures such as arm64, x86 and so on, use
offsets relative to the exception table entry values rather than
absolute addresses for both the exception locationand the fixup.

patch1 consolidates the __ex_table construction, it's a great code
clean up even w/o the 2nd patch.

patch2 does the real job.

Since v2:
  - directly check R_RISCV_SUB32 in __ex_table instead of adding
    addend_riscv_rela()

Since v1:
  - fix build error for NOMMU case, thank lkp@intel.com


Jisheng Zhang (2):
  riscv: consolidate __ex_table construction
  riscv: switch to relative exception tables

 arch/riscv/include/asm/Kbuild    |  1 -
 arch/riscv/include/asm/extable.h | 25 ++++++++++++++++++++
 arch/riscv/include/asm/futex.h   | 12 +++-------
 arch/riscv/include/asm/uaccess.h | 40 +++++++++++---------------------
 arch/riscv/lib/uaccess.S         |  4 ++--
 arch/riscv/mm/extable.c          |  2 +-
 scripts/mod/modpost.c            | 15 ++++++++++++
 scripts/sorttable.c              |  2 +-
 8 files changed, 61 insertions(+), 40 deletions(-)
 create mode 100644 arch/riscv/include/asm/extable.h

-- 
2.33.0



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-10-22  0:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-21 16:19 [PATCH v3 0/2] riscv: switch to relative extable Jisheng Zhang
2021-10-21 16:19 ` Jisheng Zhang
2021-10-21 16:20 ` [PATCH v3 1/2] riscv: consolidate __ex_table construction Jisheng Zhang
2021-10-21 16:20   ` Jisheng Zhang
2021-10-21 16:21 ` [PATCH v3 2/2] riscv: switch to relative exception tables Jisheng Zhang
2021-10-21 16:21   ` Jisheng Zhang
2021-10-22  0:46 ` [PATCH v3 0/2] riscv: switch to relative extable Kefeng Wang
2021-10-22  0:46   ` Kefeng Wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.