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)
Thu, Nov 7, 4:29 PM
Unknown Object (File)
Thu, Oct 17, 7:58 AM
Unknown Object (File)
Oct 15 2024, 7:13 AM
Unknown Object (File)
Oct 4 2024, 8:32 PM
Unknown Object (File)
Sep 24 2024, 9:01 AM
Unknown Object (File)
Sep 24 2024, 4:41 AM
Unknown Object (File)
Sep 24 2024, 4:39 AM
Unknown Object (File)
Sep 23 2024, 9:11 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.