]> git.proxmox.com Git - mirror_edk2.git/commit
ArmPkg/CompilerIntrinsicsLib: provide atomics intrinsics edk2-stable202005
authorArd Biesheuvel <ard.biesheuvel@arm.com>
Wed, 20 May 2020 11:44:48 +0000 (13:44 +0200)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 2 Jun 2020 07:05:21 +0000 (07:05 +0000)
commitca407c7246bf405da6d9b1b9d93e5e7f17b4b1f9
treec42e10c9b89d8b5132c3c6742db7978c46388036
parent4403bbd7c0964144ea72f27e2bc8048b0c0a26e1
ArmPkg/CompilerIntrinsicsLib: provide atomics intrinsics

Gary reports the GCC 10 will emit calls to atomics intrinsics routines
unless -mno-outline-atomics is specified. This means GCC-10 introduces
new intrinsics, and even though it would be possible to work around this
by specifying the command line option, this would require a new GCC10
toolchain profile to be created, which we prefer to avoid.

So instead, add the new intrinsics to our library so they are provided
when necessary.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
Tested-by: Gary Lin <glin@suse.com>
Acked-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Leif Lindholm <leif@nuviainc.com>
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
ArmPkg/Library/CompilerIntrinsicsLib/AArch64/Atomics.S [new file with mode: 0644]
ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf