OP-TEE / optee_docs

This git contains the official documentation for the OP-TEE project
BSD 2-Clause "Simplified" License
58 stars 96 forks source link

Mistake in the core docs #183

Closed jewcomm closed 1 year ago

jewcomm commented 1 year ago

In section Notifications, the documents https://github.com/OP-TEE/optee_docs/blob/master/architecture/core.rst mistake in "..driver need a bootom half..". May be should be bottom?

etienne-lms commented 1 year ago

Bottom half is a wording used in Linux kernel for tasks related to an interrupt but that executes out of the CPU interrupt execution context.

On interrupt occurrence, CPU switches into interrupt mode and executes the interruptible handler function. The execution should be fast because, while exectuing, some other interrupts are masked (for that CPU and to simplify the picture). This fast sequence called the top half or primary handler.

If more work needs to be done but doesn't need to be done in the interrupt context, then a task/thread/work is spwaned, from the interrupt hande, to be shortly scheduled by the scheduler, after the interrupt handler completes and CPU returns from the interrupt mode. This deferred task is called the bottom half.

OP-TEE async notif allows, for example, a secure interrupt to spwan the TEE thread for some work to do in OP-TEE world.

jenswi-linaro commented 1 year ago

You're right @jewcomm, feel free to make a pull request to fix it.

jewcomm commented 1 year ago

Create pull request . Close issue.