1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

RISCV: Patch ST and libsrtp. #3115

This commit is contained in:
Steven Liu 2022-07-20 21:53:39 +08:00 committed by winlin
parent 8a6fa30992
commit 08c4b25030
6 changed files with 187 additions and 38 deletions

View file

@ -186,6 +186,10 @@
/* https://github.com/ossrs/state-threads/issues/21 */
#define MD_USE_BUILTIN_SETJMP
#define MD_GET_SP(_t) *((long *)&((_t)->context[0].__jb[0]))
#elif defined(__riscv)
/* https://github.com/ossrs/state-threads/pull/28 */
#define MD_USE_BUILTIN_SETJMP
#define MD_GET_SP(_t) *((long *)&((_t)->context[0].__jmpbuf[0]))
#elif defined(__loongarch__)
/* https://github.com/ossrs/state-threads/issues/24 */