RISC-V: lib: minor asm cleanup

Fix tab/space conversion and use ENTRY/ENDPROC macros.

Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
This commit is contained in:
Olof Johansson 2018-10-30 23:47:08 -07:00 committed by Palmer Dabbelt
parent 358f3fff52
commit a266cdba17
No known key found for this signature in database
GPG key ID: EF4CA1502CCBAB41
2 changed files with 53 additions and 48 deletions

View file

@ -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:
ld a1,8(sp) ld a1,8(sp)
addi sp,sp,16 addi sp,sp,16
ret ret
ENDPROC(__lshrti3)

View file

@ -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:
bnez a3, .L3 bnez a3, .L3
.L5: .L5:
ret ret
ENDPROC(__udivdi3)