diff options
| author | Minsoo Choo <minsoochoo0122@proton.me> | 2025-11-29 00:48:29 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2025-11-29 06:07:12 +0000 |
| commit | 57c0a337dbc592a82d184f18dc69634eb0a9db10 (patch) | |
| tree | 7d9f0412a1c219ffdd951cd5f2c2d850d57265e1 | |
| parent | f3607f5a7f6923bda8a2efc95d4238a5f1903fff (diff) | |
libsys: remove armv6 hack
Signed-off-by: Minsoo Choo <minsoochoo0122@proton.me>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1903
| -rw-r--r-- | lib/libsys/arm/__vdso_gettc.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/libsys/arm/__vdso_gettc.c b/lib/libsys/arm/__vdso_gettc.c index cb4bdec1e8ef..c86bb78becb9 100644 --- a/lib/libsys/arm/__vdso_gettc.c +++ b/lib/libsys/arm/__vdso_gettc.c @@ -62,12 +62,8 @@ __vdso_gettc(const struct vdso_timehands *th, u_int *tc) if (th->th_algo != VDSO_TH_ALGO_ARM_GENTIM) return (ENOSYS); - /* - * Userspace gettimeofday() is only enabled on ARMv7 CPUs, but - * libc is compiled for ARMv6. Due to clang issues, .arch - * armv7-a directive does not work. - */ - __asm __volatile(".word\t0xf57ff06f" : : : "memory"); /* isb */ + + __asm __volatile("isb" : : : "memory"); *tc = th->th_physical == 0 ? cp15_cntvct_get() : cp15_cntpct_get(); return (0); } |
