-
Notifications
You must be signed in to change notification settings - Fork 4
Description
This allows to setup, investigate and migrate a thread state without a huge amount of system calls to query and change the state contents. Instead the frame can be mapped into the user-space for direct access. Simplifies trap handling a lot. Simplifies the handling of the machine-dependent variable size of the fpu state.
When registering the frame, the user specifies the offset and usable size inside the frame. The kernel has to check that this actually lies within the frame. If the machine-dependent fpu state would not fit, an error is returned. When the frame is revoked, the execution context has to be suspended before completing the revocation. This ensures that the memory is still usable by the kernel entry code.
The same frame may contain the invocation buffer for system calls and a ring buffer for efficent notification delivery.