1 #ifdef __linux__ 2 3 /* Linux-specific definitions: */ 4 5 /* The RISC-V ucontext has the following structure: 6 7 https://github.com/torvalds/linux/blob/44db63d1ad8d71c6932cbe007eb41f31c434d140/arch/riscv/include/uapi/asm/ucontext.h 8 */ 9 #define UC_MCONTEXT_REGS_OFF 176 10 11 #else 12 # error "Unsupported OS" 13 #endif 14