K 10 svn:author V 3 dim K 8 svn:date V 27 2021-12-25T12:03:24.848863Z K 7 svn:log V 844 compiler-rt: add aarch64 init function for LSE atomics As reported by Ronald, adding the out-of-line LSE atomics helpers for aarch64 to compiler-rt was not sufficient to link programs using these, as they also require a __aarch64_have_lse_atomics global. This is initialized in compiler-rt's lib/builtins/cpu_model.c, roughly similar to the x86 CPU model and feature detection in that file. Since upstream does not yet have a FreeBSD specific implementation for getting the required information, add a simple one that should work for now, while I try to get it sorted with the LLVM people. Reported by: Ronald Klop Fixes: cc55ee8009a5 PR: 257392 MFC after: 2 weeks (cherry picked from commit efe67f33c322265eb303ec0ab40275100795b22a) Git Hash: f379ad3de40c781c9fbb4cf840a9a4b53d9b5254 Git Author: dim@FreeBSD.org END