summaryrefslogtreecommitdiffstats
path: root/sys/libkern
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2013-03-16 04:08:01 +0000
committerandrew <andrew@FreeBSD.org>2013-03-16 04:08:01 +0000
commitfaaba46948fb2a2f0c76f4ef57dc6d7384fd55fe (patch)
tree8f293aad43d868e14ddc8035b68886ed6282b02f /sys/libkern
parent147f0b89f3dc8b52074ba05825f0e444127c50f2 (diff)
downloadFreeBSD-src-faaba46948fb2a2f0c76f4ef57dc6d7384fd55fe.zip
FreeBSD-src-faaba46948fb2a2f0c76f4ef57dc6d7384fd55fe.tar.gz
Add END to ARM libkern assembly functions
Diffstat (limited to 'sys/libkern')
-rw-r--r--sys/libkern/arm/divsi3.S13
-rw-r--r--sys/libkern/arm/ffs.S2
-rw-r--r--sys/libkern/arm/ldivmod.S2
-rw-r--r--sys/libkern/arm/memcpy.S3
4 files changed, 19 insertions, 1 deletions
diff --git a/sys/libkern/arm/divsi3.S b/sys/libkern/arm/divsi3.S
index 700ae37..302f179 100644
--- a/sys/libkern/arm/divsi3.S
+++ b/sys/libkern/arm/divsi3.S
@@ -29,6 +29,7 @@ ENTRY_NP(__umodsi3)
add sp, sp, #4 /* unalign stack */
mov r0, r1
ldmfd sp!, {pc}
+END(__umodsi3)
ENTRY_NP(__modsi3)
stmfd sp!, {lr}
@@ -48,6 +49,7 @@ ENTRY_NP(__modsi3)
mvn r0, #0
#endif
RET
+END(__modsi3)
#ifdef __ARM_EABI__
ENTRY_NP(__aeabi_uidiv)
@@ -74,6 +76,11 @@ ENTRY_NP(__udivsi3)
mov r0, r1
mov r1, #0
RET
+#ifdef __ARM_EABI__
+END(__aeabi_uidiv)
+END(__aeabi_uidivmod)
+#endif
+END(__udivsi3)
#ifdef __ARM_EABI__
ENTRY_NP(__aeabi_idiv)
@@ -393,3 +400,9 @@ ENTRY_NP(__divsi3)
addhs r3, r3, r2
mov r0, r3
RET
+#ifdef __ARM_EABI__
+END(__aeabi_idiv)
+END(__aeabi_idivmod)
+#endif
+END(__divsi3)
+
diff --git a/sys/libkern/arm/ffs.S b/sys/libkern/arm/ffs.S
index ba0af49..a43f2b6 100644
--- a/sys/libkern/arm/ffs.S
+++ b/sys/libkern/arm/ffs.S
@@ -82,3 +82,5 @@ ENTRY(ffs)
rsbne r0, r0, #32
RET
#endif
+END(ffs)
+
diff --git a/sys/libkern/arm/ldivmod.S b/sys/libkern/arm/ldivmod.S
index a88db54..26a3944 100644
--- a/sys/libkern/arm/ldivmod.S
+++ b/sys/libkern/arm/ldivmod.S
@@ -53,6 +53,7 @@ ENTRY_NP(__aeabi_ldivmod)
add sp, sp, #8 /* Move sp to the remainder value */
ldmfd sp!, {r2, r3} /* Load the remainder */
RET
+END(__aeabi_ldivmod)
ENTRY_NP(__aeabi_uldivmod)
sub sp, sp, #8 /* Space for the remainder */
@@ -62,6 +63,7 @@ ENTRY_NP(__aeabi_uldivmod)
add sp, sp, #8 /* Move sp to the remainder value */
ldmfd sp!, {r2, r3} /* Load the remainder */
RET
+END(__aeabi_uldivmod)
#endif
diff --git a/sys/libkern/arm/memcpy.S b/sys/libkern/arm/memcpy.S
index b2997db..9fca8f6 100644
--- a/sys/libkern/arm/memcpy.S
+++ b/sys/libkern/arm/memcpy.S
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2012 Andrew Turner
+ * Copyright (C) 2013 Andrew Turner
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -32,6 +32,7 @@ __FBSDID("$FreeBSD$");
ENTRY_NP(__aeabi_memcpy)
b memcpy
+END(__aeabi_memcpy)
#endif
OpenPOWER on IntegriCloud