summaryrefslogtreecommitdiffstats
path: root/sys/boot/efi/libefi
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2015-05-05 11:00:50 +0000
committerandrew <andrew@FreeBSD.org>2015-05-05 11:00:50 +0000
commit69bbb6bc36ae0a705807777558d05420dfc01589 (patch)
tree14a18bea28eb4c198c1144d8bf2049e843462f63 /sys/boot/efi/libefi
parent509c82b2c28ffec1a51141e75c487b19bc4c0f8d (diff)
downloadFreeBSD-src-69bbb6bc36ae0a705807777558d05420dfc01589.zip
FreeBSD-src-69bbb6bc36ae0a705807777558d05420dfc01589.tar.gz
Disable the use of floating-point and vector registers in the loader. They
need the vfp unit to be enabled which may not be the case.
Diffstat (limited to 'sys/boot/efi/libefi')
-rw-r--r--sys/boot/efi/libefi/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/boot/efi/libefi/Makefile b/sys/boot/efi/libefi/Makefile
index 88ca242..d248927 100644
--- a/sys/boot/efi/libefi/Makefile
+++ b/sys/boot/efi/libefi/Makefile
@@ -6,6 +6,9 @@ INTERNALLIB=
SRCS= delay.c efi_console.c efinet.c efipart.c errno.c handles.c \
libefi.c time.c
+.if ${MACHINE_CPUARCH} == "aarch64"
+CFLAGS+= -msoft-float -mgeneral-regs-only
+.endif
.if ${MACHINE_ARCH} == "amd64"
CFLAGS+= -fPIC -mno-red-zone
.endif
OpenPOWER on IntegriCloud