Page MenuHomeFreeBSD

RISC-V: Fix an alignment warning in libthr
ClosedPublic

Authored by mhorne on Oct 7 2019, 10:56 PM.
Tags
None
Referenced Files
F125667641: D21926.diff
Sun, Aug 10, 5:16 PM
Unknown Object (File)
Tue, Aug 5, 2:05 AM
Unknown Object (File)
Sun, Aug 3, 8:24 PM
Unknown Object (File)
Sun, Jul 20, 6:25 AM
Unknown Object (File)
Sun, Jul 20, 5:41 AM
Unknown Object (File)
Wed, Jul 16, 2:23 PM
Unknown Object (File)
Jul 10 2025, 6:28 AM
Unknown Object (File)
Jul 2 2025, 1:32 AM
Subscribers

Details

Summary

Compiling with clang gives a loss-of-alignment error due the cast to
uint8_t *. Since the TLS is always tcb aligned and TP_OFFSET is defined
as sizeof(struct tcb) we can guarantee there is no misalignment. Silence
the error by moving the offset into the inline assembly.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 26925
Build 25229: arc lint + arc unit