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
Unknown Object (File)
Tue, Dec 10, 8:13 AM
Unknown Object (File)
Sep 29 2024, 1:13 PM
Unknown Object (File)
Sep 16 2024, 6:20 PM
Unknown Object (File)
Sep 16 2024, 6:20 PM
Unknown Object (File)
Sep 16 2024, 6:20 PM
Unknown Object (File)
Sep 16 2024, 6:20 PM
Unknown Object (File)
Sep 16 2024, 4:50 PM
Unknown Object (File)
Sep 15 2024, 9:23 PM
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 26917
Build 25222: arc lint + arc unit