summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2013-09-29 15:19:34 +0000
committerandrew <andrew@FreeBSD.org>2013-09-29 15:19:34 +0000
commitf093c579801a670d1ae7a75f29919c66b2adae40 (patch)
tree1f80d6e09e6058325835fee05bc3935f6376bfd2 /sys/boot
parentcfb10412f3e8f2f4b2569f41eb49430373d28514 (diff)
downloadFreeBSD-src-f093c579801a670d1ae7a75f29919c66b2adae40.zip
FreeBSD-src-f093c579801a670d1ae7a75f29919c66b2adae40.tar.gz
Fix ixp425 boot2 with ARM EABI:
- libkern is missing __aeabi_llsl, implement this by calling __ashldi3. - Because of how the asm entry macros are defined the boot2 code requires the unwind symbols to exist, include them in boot2. Approved by: re (marius)
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/arm/ixp425/boot2/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/boot/arm/ixp425/boot2/Makefile b/sys/boot/arm/ixp425/boot2/Makefile
index 07b8be7..9a96d3b 100644
--- a/sys/boot/arm/ixp425/boot2/Makefile
+++ b/sys/boot/arm/ixp425/boot2/Makefile
@@ -1,5 +1,7 @@
# $FreeBSD$
+.include <bsd.own.mk>
+
# We get a lot of the std lib functions from here.
.PATH: ${.CURDIR}/../../at91/libat91
@@ -15,6 +17,9 @@ FILES=${P}
SRCS=arm_init.S boot2.c ${BOOT_FLAVOR:tl}_board.c
SRCS+=memchr.c memcmp.c memcpy.c memmem.c memset.c printf.c strcmp.c strcpy.c
SRCS+=strlen.c ashldi3.c divsi3.S muldi3.c
+.if ${MK_ARM_EABI} != "no"
+SRCS+=aeabi_unwind.c
+.endif
NO_MAN=
KERNPHYSADDR=0x180000
OpenPOWER on IntegriCloud