Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+31 −28
Original line number Diff line number Diff line
@@ -10,8 +10,10 @@
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 */
  .globl __lshrti3
__lshrti3:

#include <linux/linkage.h>

ENTRY(__lshrti3)
	beqz	a2, .L1
	li	a5,64
	sub	a5,a5,a2
@@ -40,3 +42,4 @@ __lshrti3:
	ld	a1,8(sp)
	addi	sp,sp,16
	ret
ENDPROC(__lshrti3)
+22 −20
Original line number Diff line number Diff line
@@ -11,8 +11,9 @@
 *   GNU General Public License for more details.
 */

  .globl __udivdi3
__udivdi3:
#include <linux/linkage.h>

ENTRY(__udivdi3)
	mv	a2, a1
	mv	a1, a0
	li	a0, -1
@@ -36,3 +37,4 @@ __udivdi3:
	bnez	a3, .L3
.L5:
	ret
ENDPROC(__udivdi3)