Skip to content

store thread state and fpu state in a memory frame #78

@rottaran

Description

@rottaran

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions