Add END to ARM libkern assembly functions

This commit is contained in:
Andrew Turner 2013-03-16 04:08:01 +00:00
parent 5cc8d54ca0
commit a2dee2ad37
4 changed files with 19 additions and 1 deletions

View File

@ -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)

View File

@ -82,3 +82,5 @@ ENTRY(ffs)
rsbne r0, r0, #32
RET
#endif
END(ffs)

View File

@ -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

View File

@ -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