X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=arch%2Farm%2Flib%2Fdiv64.S;h=b417db222d6b02ca121e5796dee744f806630f02;hb=8bbff6a70e2bb01d16832271ec6c3afa22f8aebd;hp=03986c26a9afc0a586eccd8b9b1c7973d86d7b46;hpb=7b9f9c5d3bae666359143cf5a681f90e998b5a80;p=u-boot diff --git a/arch/arm/lib/div64.S b/arch/arm/lib/div64.S index 03986c26a9..b417db222d 100644 --- a/arch/arm/lib/div64.S +++ b/arch/arm/lib/div64.S @@ -45,6 +45,7 @@ * Clobbered regs: xl, ip */ +.pushsection .text.__do_div64, "ax" ENTRY(__do_div64) UNWIND(.fnstart) @@ -88,8 +89,8 @@ UNWIND(.fnstart) @ Break out early if dividend reaches 0. 2: cmp xh, yl orrcs yh, yh, ip - subcss xh, xh, yl - movnes ip, ip, lsr #1 + subscs xh, xh, yl + movsne ip, ip, lsr #1 mov yl, yl, lsr #1 bne 2b @@ -210,3 +211,4 @@ Ldiv0_64: UNWIND(.fnend) ENDPROC(__do_div64) +.popsection