diff options
| author | Andrew Turner <andrew@FreeBSD.org> | 2021-04-07 10:29:03 +0000 |
|---|---|---|
| committer | Andrew Turner <andrew@FreeBSD.org> | 2021-04-08 07:52:54 +0000 |
| commit | 4d9488674f3a36a2d12d11cad170cb1bd1c14a6d (patch) | |
| tree | 2277b02a0dafdbed7afc493e83e583064d2d937a /lib/libthr/arch | |
| parent | 24b2f4ea49229618c5608846acfc10be2eb0d567 (diff) | |
Diffstat (limited to 'lib/libthr/arch')
| -rw-r--r-- | lib/libthr/arch/arm/include/pthread_md.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/libthr/arch/arm/include/pthread_md.h b/lib/libthr/arch/arm/include/pthread_md.h index 55d93d0853bc..6f99eb7a139b 100644 --- a/lib/libthr/arch/arm/include/pthread_md.h +++ b/lib/libthr/arch/arm/include/pthread_md.h @@ -54,11 +54,7 @@ struct tcb { static __inline void _tcb_set(struct tcb *tcb) { -#ifdef ARM_TP_ADDRESS - *((struct tcb **)ARM_TP_ADDRESS) = tcb; /* avoids a system call */ -#else sysarch(ARM_SET_TP, tcb); -#endif } /* @@ -67,15 +63,11 @@ _tcb_set(struct tcb *tcb) static __inline struct tcb * _tcb_get(void) { -#ifdef ARM_TP_ADDRESS - return (*((struct tcb **)ARM_TP_ADDRESS)); -#else struct tcb *tcb; __asm __volatile("mrc p15, 0, %0, c13, c0, 3" \ : "=r" (tcb)); return (tcb); -#endif } static __inline struct pthread * |
