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)
Mar 19 2024, 1:13 AM
Unknown Object (File)
Mar 18 2024, 8:12 PM
Unknown Object (File)
Jan 11 2024, 10:46 PM
Unknown Object (File)
Jan 8 2024, 1:56 PM
Unknown Object (File)
Dec 20 2023, 1:17 AM
Unknown Object (File)
Dec 3 2023, 6:05 PM
Unknown Object (File)
Dec 3 2023, 6:05 PM
Unknown Object (File)
Dec 3 2023, 6:05 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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable