Use the unified syntax in a few more assembly files
MFC after: 1 week Sponsored by: ABT Systems Ltd
This commit is contained in:
parent
ff9dd44ead
commit
524bca9008
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=275520
@ -38,6 +38,8 @@
|
|||||||
#include "assym.s"
|
#include "assym.s"
|
||||||
__FBSDID("$FreeBSD$");
|
__FBSDID("$FreeBSD$");
|
||||||
|
|
||||||
|
.syntax unified
|
||||||
|
|
||||||
#ifdef _ARM_ARCH_6
|
#ifdef _ARM_ARCH_6
|
||||||
#define GET_PCB(tmp) \
|
#define GET_PCB(tmp) \
|
||||||
mrc p15, 0, tmp, c13, c0, 4; \
|
mrc p15, 0, tmp, c13, c0, 4; \
|
||||||
@ -83,7 +85,7 @@ EENTRY_NP(casuword32)
|
|||||||
ldrt r5, [r0]
|
ldrt r5, [r0]
|
||||||
cmp r5, r1
|
cmp r5, r1
|
||||||
movne r0, r5
|
movne r0, r5
|
||||||
streqt r2, [r0]
|
strteq r2, [r0]
|
||||||
#endif
|
#endif
|
||||||
moveq r0, r1
|
moveq r0, r1
|
||||||
2:
|
2:
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
#include <machine/asm.h>
|
#include <machine/asm.h>
|
||||||
__FBSDID("$FreeBSD$");
|
__FBSDID("$FreeBSD$");
|
||||||
|
|
||||||
|
.syntax unified
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ffs - find first set bit, this algorithm isolates the first set
|
* ffs - find first set bit, this algorithm isolates the first set
|
||||||
@ -62,7 +63,7 @@ ENTRY(ffs)
|
|||||||
rsbne r0, r0, r0, lsl #16 /* r0 = X * 0x0450fbaf */
|
rsbne r0, r0, r0, lsl #16 /* r0 = X * 0x0450fbaf */
|
||||||
|
|
||||||
/* now lookup in table indexed on top 6 bits of r0 */
|
/* now lookup in table indexed on top 6 bits of r0 */
|
||||||
ldrneb r0, [ r2, r0, lsr #26 ]
|
ldrbne r0, [ r2, r0, lsr #26 ]
|
||||||
|
|
||||||
RET
|
RET
|
||||||
.text;
|
.text;
|
||||||
|
Loading…
Reference in New Issue
Block a user