Commit a266cdba authored by Olof Johansson's avatar Olof Johansson Committed by Palmer Dabbelt

RISC-V: lib: minor asm cleanup

Fix tab/space conversion and use ENTRY/ENDPROC macros.
Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
Signed-off-by: default avatarPalmer Dabbelt <palmer@sifive.com>
parent 358f3fff
...@@ -10,8 +10,10 @@ ...@@ -10,8 +10,10 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
.globl __lshrti3
__lshrti3: #include <linux/linkage.h>
ENTRY(__lshrti3)
beqz a2, .L1 beqz a2, .L1
li a5,64 li a5,64
sub a5,a5,a2 sub a5,a5,a2
...@@ -40,3 +42,4 @@ __lshrti3: ...@@ -40,3 +42,4 @@ __lshrti3:
ld a1,8(sp) ld a1,8(sp)
addi sp,sp,16 addi sp,sp,16
ret ret
ENDPROC(__lshrti3)
...@@ -11,8 +11,9 @@ ...@@ -11,8 +11,9 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
.globl __udivdi3 #include <linux/linkage.h>
__udivdi3:
ENTRY(__udivdi3)
mv a2, a1 mv a2, a1
mv a1, a0 mv a1, a0
li a0, -1 li a0, -1
...@@ -36,3 +37,4 @@ __udivdi3: ...@@ -36,3 +37,4 @@ __udivdi3:
bnez a3, .L3 bnez a3, .L3
.L5: .L5:
ret ret
ENDPROC(__udivdi3)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment