mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-06-02 13:30:09 +00:00
arm-bsp/secure-partitions: fix build with GCC 11.4
GCC 11.4 has improved code generation and needs the __aarch64_cas4_sync intrinsic from libgcc, but one of the modules here doesn't link to libgcc. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
+17
-8
@@ -53,7 +53,7 @@ new file mode 100644
|
|||||||
index 0000000..840683a
|
index 0000000..840683a
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/deployments/se-proxy/opteesp/lse.S
|
+++ b/deployments/se-proxy/opteesp/lse.S
|
||||||
@@ -0,0 +1,19 @@
|
@@ -0,0 +1,28 @@
|
||||||
+// SPDX-License-Identifier: BSD-3-Clause
|
+// SPDX-License-Identifier: BSD-3-Clause
|
||||||
+/*
|
+/*
|
||||||
+ * Copyright (c) 2021, Arm Limited and Contributors. All rights reserved.
|
+ * Copyright (c) 2021, Arm Limited and Contributors. All rights reserved.
|
||||||
@@ -61,18 +61,27 @@ index 0000000..840683a
|
|||||||
+
|
+
|
||||||
+.text
|
+.text
|
||||||
+.globl __aarch64_cas4_acq_rel
|
+.globl __aarch64_cas4_acq_rel
|
||||||
|
+.globl __aarch64_cas4_sync
|
||||||
+
|
+
|
||||||
+__aarch64_cas4_acq_rel:
|
+__aarch64_cas4_acq_rel:
|
||||||
+ mov w16, w0
|
+ mov w16, w0
|
||||||
+ ldaxr w0, [x2]
|
+ ldaxr w0, [x2]
|
||||||
+ cmp w0, w16
|
+ cmp w0, w16
|
||||||
+0: bne 1f
|
+0: bne 1f
|
||||||
+
|
+
|
||||||
+ stlxr w17, w1, [x2]
|
+ stlxr w17, w1, [x2]
|
||||||
+ cbnz w17, 0b
|
+ cbnz w17, 0b
|
||||||
+1: ret
|
+1: ret
|
||||||
+
|
+
|
||||||
|
+__aarch64_cas4_sync:
|
||||||
|
+ mov w16, w0
|
||||||
|
+ ldxr w0, [x2]
|
||||||
|
+ cmp w0, w16
|
||||||
|
+0: bne 1f
|
||||||
+
|
+
|
||||||
|
+ stlxr w17, w1, [x2]
|
||||||
|
+ cbnz w17, 0b
|
||||||
|
+1: ret
|
||||||
diff --git a/external/openamp/libmetal.cmake b/external/openamp/libmetal.cmake
|
diff --git a/external/openamp/libmetal.cmake b/external/openamp/libmetal.cmake
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 0000000..3a647e6
|
index 0000000..3a647e6
|
||||||
|
|||||||
Reference in New Issue
Block a user