summaryrefslogtreecommitdiffstats
path: root/src/vppinfra/longjmp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vppinfra/longjmp.h')
-rw-r--r--src/vppinfra/longjmp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vppinfra/longjmp.h b/src/vppinfra/longjmp.h
index 67c650a6174..62daaad59bd 100644
--- a/src/vppinfra/longjmp.h
+++ b/src/vppinfra/longjmp.h
@@ -95,6 +95,9 @@
#define CLIB_ARCH_LONGJMP_REGS (22)
#elif defined(_mips) && __mips == 64
#define CLIB_ARCH_LONGJMP_REGS (12)
+#elif defined(__riscv)
+/* ra, sp, s0-s11, fs0-fs11 */
+#define CLIB_ARCH_LONGJMP_REGS (26)
#else
#error "unknown machine"
#endif