Dimitry Andric efe67f33c3 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 <ronald-lists@klop.ws>
Fixes:		cc55ee8009a5
PR:		257392
MFC after:	2 weeks
2021-09-06 21:24:01 +02:00
..
2021-06-25 16:02:40 -07:00
2021-03-01 16:01:44 +01:00
2021-07-17 22:20:44 -07:00
2021-01-13 23:56:18 -06:00
2020-10-24 17:08:59 +00:00
2021-08-01 11:31:50 -06:00
2021-02-23 17:47:07 +00:00
2021-01-12 00:56:35 +02:00
2021-05-06 18:01:44 -07:00
2021-05-20 00:12:27 +03:00
2021-01-02 21:03:28 +02:00
2021-08-17 02:32:56 -07:00