mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-11-14 10:15:13 +00:00
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:
parent
358f3fff52
commit
a266cdba17
2 changed files with 53 additions and 48 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue