Coder Social home page Coder Social logo

Comments (2)

winlinvip avatar winlinvip commented on June 5, 2024

嵌入式环境差别比较大,这个就是setmpjmpbuf定义不太一样,需要你处理下。

可以参考 https://github.com/ossrs/state-threads/blob/srs/tools/porting/porting.c 看看具体怎么写才是对的。

欢迎Patch下。

from state-threads.

sunplusApp avatar sunplusApp commented on June 5, 2024

#define MD_GET_SP(_t) ((_t)->context[0].__jmpbuf[13])
看了下这行大概的意思是获取获取SP指针?编译报错是context[0]是个long类型变量,遂将上面代码改成
#define MD_GET_SP(_t) ((_t)->context[JB_RSP]
这样就编过了,而且测试好用。

from state-threads.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.