3 ms·
Indeed the restartable sequence critical section needs to be written in assembly. The idea is to keep this complexity within public headers implementing the com
by compudj 8y ago
Indeed the restartable sequence critical section needs to be written in assembly. The idea is to keep this complexity within public headers implementing the common operations as inline assembly for all supported architectures. You can see such operations already implemented for x86 as part of the rseq selftests here: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/tools/testing/selftests/rseq/rseq-x86.h?h=v4.18-rc1 https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...