Skip to content

Commit 57c0a33

Browse files
mchoo7bsdimp
authored andcommitted
libsys: remove armv6 hack
Signed-off-by: Minsoo Choo <[email protected]> Reviewed by: imp Pull Request: #1903
1 parent f3607f5 commit 57c0a33

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/libsys/arm/__vdso_gettc.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,8 @@ __vdso_gettc(const struct vdso_timehands *th, u_int *tc)
6262

6363
if (th->th_algo != VDSO_TH_ALGO_ARM_GENTIM)
6464
return (ENOSYS);
65-
/*
66-
* Userspace gettimeofday() is only enabled on ARMv7 CPUs, but
67-
* libc is compiled for ARMv6. Due to clang issues, .arch
68-
* armv7-a directive does not work.
69-
*/
70-
__asm __volatile(".word\t0xf57ff06f" : : : "memory"); /* isb */
65+
66+
__asm __volatile("isb" : : : "memory");
7167
*tc = th->th_physical == 0 ? cp15_cntvct_get() : cp15_cntpct_get();
7268
return (0);
7369
}

0 commit comments

Comments
 (0)