Coder Social home page Coder Social logo

Trampoline FPU armv7 about trampoline HOT 1 CLOSED

grundmanns avatar grundmanns commented on June 2, 2024
Trampoline FPU armv7

from trampoline.

Comments (1)

jlbirccyn avatar jlbirccyn commented on June 2, 2024

Hello Sven,

Currently, it is not possible.
It won't work in case of a context switch because the FPU registers are not saved on the stack.

To support a FPU, you need to:

  1. add an attribute in OS object in the OIL file to indicate the FPU is used (let's say a FPU boolean attribute);
  2. add code conditional to WITH_FPU macro definition in kernel to perform initializations;
  3. add flag in the task object OIL description to indicate the task uses the FPU;
  4. add a flag in the static task descriptor, conditional to WITH_FPU, indicating if the task uses FPU;
  5. add code in tpl_sc_handler/systick handler/ISR2 handlers that read the flag of the switched tasks to save FP regs and load FP regs when necessary.

Best regards

Jean-Luc Béchennec

from trampoline.

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.