HelenOS sources

ISTATE_OFFSET_X4   40 kernel/arch/arm64/include/arch/istate_struct.h #define ISTATE_OFFSET_X4     0x40
ISTATE_OFFSET_X4   36 kernel/arch/riscv64/include/arch/istate_struct.h #define ISTATE_OFFSET_X4    0x20
ISTATE_OFFSET_X4   40 uspace/lib/c/arch/arm64/include/libarch/istate_struct.h #define ISTATE_OFFSET_X4     0x40
ISTATE_OFFSET_X4   36 uspace/lib/c/arch/riscv64/include/libarch/istate_struct.h #define ISTATE_OFFSET_X4    0x20
HelenOS homepage, sources at GitHub