Giter Club home page Giter Club logo

Comments (3)

PThierry avatar PThierry commented on May 29, 2024

Hello !

Thanks for the issue!

This cast is due to the following:
1)kernel handlers are executed synchronously (i.e. in handler mode) without requiring a stack construct. These handlers only get back the current frame pointer as argument
2) user ISR handlers are postponed and executed in their own context, which include three arguments.

There is no effective bug as the kernel handlers are correctly executed and user and kernel handlers are filtered using other fields of this structure. Although, the method is not clean and may lead to invalid behavior if we don't check correctly what we do in the kernel.

I've patched the code using a dedicated union for handlers, using two fields :

  • synchronous_handler, which is executed in handler mode and which get the current frame as argument
  • postponed_handler which is postponed through softirq thread and executed in a userspace context, with three arguments

Through this patch, there is no more explicit cast, avoiding any invalid use.

We will make this patch public in a few days, as we are currently finishing the full cleaning of the Wookey project, which include the new kernel version (including a lot of new Ada and Spark content and a lot of kernel patches) and a huge content of userspace drivers and libraries (USB HS/FS, SCSI, hash, cryp, DFU, iso7816 and so on...). We hope the full publication of the project will happen in very few days :-)

from ewok-kernel.

Firobe avatar Firobe commented on May 29, 2024

Thank you for your answer, I'm looking forward to the release !

from ewok-kernel.

PThierry avatar PThierry commented on May 29, 2024

Closed with first public full release

from ewok-kernel.

Related Issues (2)

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.