Skip to content

RISC-V: add support for restartable sequence

Vincent Chen linux-riscv 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 2 repliesIn review
  2. v32 patches 9 repliesSuperseded

Changes in v4 from the cover letter

1. Modify the endianness checking.
2. Fix a bug encountered in 32bit environment.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2RISC-V: Add support for restartable sequencearch/riscv/Kconfig arch/riscv/kernel/entry.S arch/riscv/kernel/signal.c+7 -00 replies
2/2rseq/selftests: Add support for RISC-Vtools/testing/selftests/rseq/param_test.c tools/testing/selftests/rseq/rseq-riscv.h tools/testing/selftests/rseq/rseq.h+702 -01 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchMathieu DesnoyersEric Lin
1/2R-b
2/2R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/2] RISC-V: add support for restartable sequence

Add RSEQ, restartable sequence, support and related selftest to RISCV.

The relevant RSEQ tests in kselftest require the binutils patch "RISC-V:
Fix linker problems with TLS copy relocs" to avoid placing PREINIT_ARRAY and TLS variable of librseq.so at the same address.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;h=3e7bd7f24146f162565edf878840449f36a8d974
A segmental fault will happen if binutils misses this patch.

Changes since v3:
1. Modify the endianness checking.
2. Fix a bug encountered in 32bit environment.

Changes since v2:
1. Move rseq_signal_deliver() after syscall restart handling.
2. Add rseq_offset_deref_addv() to support memory barrier tests.

Vincent Chen (2):
RISC-V: Add support for restartable sequence
rseq/selftests: Add support for RISC-V

 arch/riscv/Kconfig                        |   1 +
 arch/riscv/kernel/entry.S                 |   4 +
 arch/riscv/kernel/signal.c                |   2 +
 tools/testing/selftests/rseq/param_test.c |  23 +
 tools/testing/selftests/rseq/rseq-riscv.h | 677 ++++++++++++++++++++++
 tools/testing/selftests/rseq/rseq.h       |   2 +
 6 files changed, 709 insertions(+)
 create mode 100644 tools/testing/selftests/rseq/rseq-riscv.h
Signature · 7 lines
2.17.1


_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv