Code Monkey home page Code Monkey logo

Comments (3)

RichardBarry avatar RichardBarry commented on July 23, 2024

Thanks for providing this information - currently we don't support the 'C' extension but if this is something of interest to you then we can add it to our backlog. Alternatively if you wish to see support sooner then I would encourage you to submit a pull request with the necessary modifications.

from freertos-kernel.

gxflying avatar gxflying commented on July 23, 2024

Hi, @RichardBarry I may not agree with you.
see risc-v demo below, all the gcc options are "-march=rv32imac", so at least the demo developers did NOT known the information that "currently we don't support the 'C' extension ". this will definitely result in a exception in long term
https://github.com/FreeRTOS/FreeRTOS/blob/8e36bee30eef2107e128edb58e83ee46e8241a91/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_FreedomStudio/.cproject#L88
I think there two ways for it:

  1. explicitly claim that “c” extension NOT is supported yet somewhere easy to be seen
  2. I will try to PR as what I said in the first comment

from freertos-kernel.

bluewww avatar bluewww commented on July 23, 2024

Indeed the addition by the instruction size needs to be different for each trap handler. In this case the addi a1, a1, 4 should go under test_if_environment_call. The instruction size of ecall is always four.

from freertos-kernel.

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.