Git Product home page Git Product logo

Comments (4)

RichardBarry avatar RichardBarry commented on August 28, 2024

Really appreciate you taking the time to provide this detail. It may take a little time to digest and fix. Would also be great if, once everything is running smoothly, you could also open a pull request to upstream your enhanced port.

from freertos-kernel.

rphh avatar rphh commented on August 28, 2024

I was wrong.

The race condition is possible and if it happen the stack won't be broken.

from freertos-kernel.

RichardBarry avatar RichardBarry commented on August 28, 2024

Lets say Task A is executing the SR/RETI sequence when a context switch occurs to Task B between the SR and RETI instructions. When the context switches back to Task A, would it not return to the RETI instruction allowing Task A to continue from there? Is that what you mean by "I was wrong"?

from freertos-kernel.

rphh avatar rphh commented on August 28, 2024

If the race condition occur, between sr and reta instructions, then the stack won't be broken. The instruction reta will be executed next time.

This is no longer a bug, so I'm closing it.

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.