Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F162725300
D58212.id181894.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D58212.id181894.diff
View Options
diff --git a/share/mk/bsd.cpu.mk b/share/mk/bsd.cpu.mk
--- a/share/mk/bsd.cpu.mk
+++ b/share/mk/bsd.cpu.mk
@@ -6,7 +6,7 @@
.if !defined(CPUTYPE) || empty(CPUTYPE)
_CPUCFLAGS =
. if ${MACHINE_CPUARCH} == "aarch64"
-MACHINE_CPU = arm64
+MACHINE_CPU = arm64 cortexa53
. elif ${MACHINE_CPUARCH} == "amd64"
MACHINE_CPU = amd64 sse2 sse mmx
. elif ${MACHINE_CPUARCH} == "arm"
@@ -124,6 +124,14 @@
. elif ${MACHINE_ARCH:Mpowerpc64*} != ""
_CPUCFLAGS = -mcpu=${CPUTYPE}
. elif ${MACHINE_CPUARCH} == "aarch64"
+MACHINE_CPU = arm64
+. if ${CPUTYPE} == "generic"
+MACHINE_CPU += cortexa53
+. elif ${CPUTYPE} == "armv8-a"
+MACHINE_CPU += cortexa53
+. elif ${CPUTYPE:M*cortex-a53*} != ""
+MACHINE_CPU += cortexa53
+. endif
. if ${CPUTYPE:Marmv*} != ""
# Use -march when the CPU type is an architecture value, e.g. armv8.1-a
_CPUCFLAGS = -march=${CPUTYPE}
@@ -302,6 +310,14 @@
. endif
.endif
+########## arm64/aarch64
+.if ${MACHINE_CPUARCH} == "aarch64"
+# Add the Cortex-A53 erratum 843419 workaround if we are targeting it.
+. if ${MACHINE_CPU:Mcortexa53} != ""
+LDFLAGS += -Wl,--fix-cortex-a53-843419
+. endif
+.endif
+
########## arm
.if ${MACHINE_CPUARCH} == "arm"
MACHINE_CPU += arm
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 17, 4:42 AM (5 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35063721
Default Alt Text
D58212.id181894.diff (1 KB)
Attached To
Mode
D58212: bsd.cpu.mk: Add a workaround for erratum 843419
Attached
Detach File
Event Timeline
Log In to Comment