aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra/longjmp.h
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2021-10-31 19:04:33 +0100
committerDamjan Marion <dmarion@me.com>2021-11-02 19:35:17 +0000
commit6eb0f84e37d84caeb9db773976df5ab3a7e794d0 (patch)
tree9d42eccf54d3d01dd4c6479ac4ab55b185303ad4 /src/vppinfra/longjmp.h
parent1e6d30bd444fa95df0f08cdef7e899def56c17a7 (diff)
vppinfra: initial RISC-V support
Type: feature Change-Id: I1314d60fc420366526efaddd1ed215cf5f8b75dd Signed-off-by: Damjan Marion <damarion@cisco.com>
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