]> www.infradead.org Git - users/jedix/linux-maple.git/commit
openrisc: Add HAVE_REGS_AND_STACK_ACCESS_API support
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 10 Dec 2024 19:58:12 +0000 (19:58 +0000)
committerStafford Horne <shorne@gmail.com>
Tue, 14 Jan 2025 17:17:15 +0000 (17:17 +0000)
commit7ce8716e2769dc08eccdf2b9385db6b0346d2f0d
treed6ccadb1c7fd35af37b9fea283f6b1b0cb165490
parent134502abfe361784a4e04037cbb76261ab4d835b
openrisc: Add HAVE_REGS_AND_STACK_ACCESS_API support

Support for HAVE_REGS_AND_STACK_ACCESS_API needed for restartable
sequences.

The implementation has been copied from riscv and tested with the
restartable sequences self tests.

Note, pt-regs members are 'long' on openrisc which require casts for the
api, someday we should try to update these to be 'unsigned long' as
that's what they really are.

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
[stafford: Updated commit message]
Signed-off-by: Stafford Horne <shorne@gmail.com>
arch/openrisc/Kconfig
arch/openrisc/include/asm/ptrace.h
arch/openrisc/kernel/ptrace.c