Page MenuHomeFreeBSD

powerpc: Add static asssert for context size
ClosedPublic

Authored by imp on Feb 8 2022, 10:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 21, 12:58 AM
Unknown Object (File)
Sun, Apr 20, 11:16 PM
Unknown Object (File)
Sun, Apr 20, 7:53 AM
Unknown Object (File)
Thu, Apr 17, 9:45 PM
Unknown Object (File)
Sun, Apr 13, 1:25 PM
Unknown Object (File)
Mar 24 2025, 3:11 AM
Unknown Object (File)
Mar 5 2025, 7:07 AM
Unknown Object (File)
Feb 23 2025, 6:13 PM
Subscribers

Details

Summary

Add a static assert for the mcontext_t and ucontext_t sizes. These are
de-facto ABI options and cannot change size ever. For powerpc64, also
add asserts for {u,m}mcontext32_t.

Sponsored by: Netflix

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 44360
Build 41248: arc lint + arc unit

Event Timeline

andrew added inline comments.
sys/powerpc/powerpc/exec_machdep.c
135

Shouldn't this message be ucontext_t ...?

144

And here

This revision is now accepted and ready to land.Feb 9 2022, 2:38 PM
This revision now requires review to proceed.Feb 10 2022, 7:31 PM
This revision was not accepted when it landed; it landed in state Needs Review.Feb 10 2022, 9:34 PM
This revision was automatically updated to reflect the committed changes.