Skip to content

feat(signals): added signal frame layout types - #165

Merged
FlareCoding merged 1 commit into
masterfrom
pr/signal-frame-types
Aug 12, 2026
Merged

feat(signals): added signal frame layout types#165
FlareCoding merged 1 commit into
masterfrom
pr/signal-frame-types

Conversation

@FlareCoding

Copy link
Copy Markdown
Owner

Summary

  • Handler delivery must write signal frames that musl handlers, the __restore_rt trampoline, and rt_sigreturn all read back, so the layouts are pinned before any delivery logic exists.
  • Adds per-arch rt_sigframe/ucontext/sigcontext/fpsimd_context types with offset static_asserts matching the musl ABI, including the 16-byte-alignment padding that places the AArch64 uc_mcontext at 176.
  • Pure types with no consumers yet, so there is no behavior change.

Made with Cursor

Handler delivery needs the kernel to write signal frames that musl
handlers, the restorer, and rt_sigreturn all read back, so the per-arch
rt_sigframe layouts are pinned by static_asserts before any delivery code.

Co-authored-by: Cursor <cursoragent@cursor.com>
@FlareCoding
FlareCoding merged commit 1a29e79 into master Aug 12, 2026
15 checks passed
@FlareCoding
FlareCoding deleted the pr/signal-frame-types branch August 12, 2026 20:48

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

Reviewed by Cursor Bugbot for commit 6507b1f. Configure here.

Comment thread kernel/arch/aarch64/signal/sigframe.h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant