From: Mark Corbin<mark.corbin@embecsom.com>
Added the 'get_mcontext' function to extract and populate
the RISC-V machine context from the CPU state.
This function is used to gather the current state of the
general-purpose registers and store it in a 'target_mcontext_'
structure.
Signed-off-by: Mark Corbin<mark.corbin@embecsom.com>
Signed-off-by: Ajeet Singh<itachis@FreeBSD.org>
Signed-off-by: Warner Losh<imp@bsdimp.com>
Co-authored-by: Warner Losh<imp@bsdimp.com>
---
bsd-user/riscv/signal.c | 53 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)