]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/lib/_divsi3.S
arm: mvebu: dram.c: Rework dram_init() and dram_init_banksize()
[u-boot] / arch / arm / lib / _divsi3.S
index cfbadb2ab99f094d88bb81b4a4194187d660b195..c463c68f85e8b9e974d908dfec1b379aa68c5bb5 100644 (file)
@@ -1,3 +1,4 @@
+#include <linux/linkage.h>
 
 .macro ARM_DIV_BODY dividend, divisor, result, curbit
 
@@ -96,9 +97,8 @@
 
        .align  5
 .globl __divsi3
-.globl __aeabi_idiv
 __divsi3:
-__aeabi_idiv:
+ENTRY(__aeabi_idiv)
        cmp     r1, #0
        eor     ip, r0, r1                      @ save the sign of the result.
        beq     Ldiv0
@@ -140,3 +140,4 @@ Ldiv0:
        bl      __div0
        mov     r0, #0                  @ About as wrong as it could be.
        ldr     pc, [sp], #4
+ENDPROC(__aeabi_idiv)