diff options
author | cognet <cognet@FreeBSD.org> | 2004-11-09 16:47:47 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2004-11-09 16:47:47 +0000 |
commit | 7e3e230230217c6f10e0156b63efa735c2f9baef (patch) | |
tree | ff5085746a621e4ccc4ddb6aa6145fab5370f044 /sys/libkern | |
parent | 601293a4989f47edbf941b355d640e03540a8f86 (diff) | |
download | FreeBSD-src-7e3e230230217c6f10e0156b63efa735c2f9baef.zip FreeBSD-src-7e3e230230217c6f10e0156b63efa735c2f9baef.tar.gz |
Use the RET macro.
Diffstat (limited to 'sys/libkern')
-rw-r--r-- | sys/libkern/arm/divsi3.S | 8 | ||||
-rw-r--r-- | sys/libkern/arm/ffs.S | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/libkern/arm/divsi3.S b/sys/libkern/arm/divsi3.S index b0858c9..8f3a257 100644 --- a/sys/libkern/arm/divsi3.S +++ b/sys/libkern/arm/divsi3.S @@ -47,7 +47,7 @@ ENTRY_NP(__modsi3) /* XXX should cause a fatal error */ mvn r0, #0 #endif - mov pc, lr + RET ENTRY_NP(__udivsi3) .L_udivide: /* r0 = r0 / r1; r1 = r0 % r1 */ @@ -69,7 +69,7 @@ ENTRY_NP(__udivsi3) .L_divide_l0: /* r0 == 1 */ mov r0, r1 mov r1, #0 - mov pc, lr + RET ENTRY_NP(__divsi3) .L_divide: /* r0 = r0 / r1; r1 = r0 % r1 */ @@ -373,7 +373,7 @@ ENTRY_NP(__divsi3) movs ip, ip, lsl #1 bicmi r0, r0, #0x80000000 /* Fix incase we divided 0x80000000 */ rsbmi r0, r0, #0 - mov pc, lr + RET .L_udivide_l1: tst ip, #0x10000000 @@ -384,4 +384,4 @@ ENTRY_NP(__divsi3) subhs r1, r1, r0 addhs r3, r3, r2 mov r0, r3 - mov pc, lr + RET diff --git a/sys/libkern/arm/ffs.S b/sys/libkern/arm/ffs.S index 6fe31b9..2fcf3af 100644 --- a/sys/libkern/arm/ffs.S +++ b/sys/libkern/arm/ffs.S @@ -64,7 +64,7 @@ ENTRY(ffs) /* now lookup in table indexed on top 6 bits of r0 */ ldrneb r0, [ r2, r0, lsr #26 ] - mov pc, lr + RET .text; .type .L_ffs_table, _ASM_TYPE_OBJECT; .L_ffs_table: @@ -80,5 +80,5 @@ ENTRY(ffs) #else clzne r0, r0 rsbne r0, r0, #32 - mov pc, lr + RET #endif |