Page MenuHomeFreeBSD

i386 kernel __storeload_barrier: quiet gcc -Warray-bounds
ClosedPublic

Authored by rlibby on Jun 22 2024, 5:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Sep 25, 6:13 AM
Unknown Object (File)
Wed, Sep 18, 11:45 AM
Unknown Object (File)
Tue, Sep 17, 8:24 PM
Unknown Object (File)
Mon, Sep 16, 11:08 PM
Unknown Object (File)
Mon, Sep 16, 12:30 PM
Unknown Object (File)
Aug 22 2024, 9:30 AM
Unknown Object (File)
Aug 22 2024, 9:29 AM
Unknown Object (File)
Aug 22 2024, 9:29 AM
Subscribers

Details

Summary

Use a constant input operand instead of an output operand to tell the
compiler about OFFSETOF_MONITORBUF. If we tell it we are writing to
*(u_int *)
OFFSETOF_MONITORBUF, it rightly complains, but we aren't.
The memory clobber already covers the necessary semantics for the
compiler.

Test Plan

No testing done yet! Just following D45694. Will build i386 GENERIC and disassemble membarrier_action_seqcst

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable