Conversation
This implementation provides support for the IEEE Std 1003.13-2003 POSIX real-time profiles on the F9 microkernel as an additional API layer for application development. PSE51 (Minimal Realtime System Profile): - Threads: pthread_create/join/detach/exit/self/equal, cancellation - Mutexes: normal/recursive/errorcheck with timedlock support - Condition variables: wait/timedwait/signal/broadcast - Semaphores: init/wait/trywait/post/getvalue/destroy - Time: clock_gettime/nanosleep using L4_SystemClock - Signals: per-thread state with sigmask/sigaction/sigwait PSE52 (Realtime Controller) partial: - Spinlocks: init/lock/trylock/unlock/destroy - Read-write locks and barriers (stubs) Implementation highlights: - Notification-based blocking via L4_NotifyWait/Post/Clear - UTCB-keyed cancel_table for thread cancellation state - Thread lifecycle tracking (CREATED/RUNNING/EXITED) - Proper timeout handling with TIMEOUT_BIT clearing - Atomic sem_post overflow check to prevent TOCTOU race Kernel changes: - Add SYS_NOTIFY_CLEAR syscall for IRQ-safe bit clearing - Fix race condition in sys_notify_post notification delivery Close #98
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This implementation provides support for the IEEE Std 1003.13-2003 POSIX real-time profiles on the F9 microkernel as an additional API layer for application development.
PSE51 (Minimal Realtime System Profile):
PSE52 (Realtime Controller) partial:
Implementation highlights:
Kernel changes:
Close #98
Summary by cubic
Adds a POSIX API layer (PSE51 with partial PSE52) and kernel notification syscalls, enabling pthreads, semaphores, signals, and time on F9. Includes a POSIX test app with CI integration and fixes a notification delivery race.
New Features
Migration
Written for commit 8283605. Summary will update on new commits.