diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2016-09-04 08:49:36 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2016-09-04 08:49:36 +0000 |
commit | 4eee5f06996b52bc7a51310071b84377589f4eab (patch) | |
tree | 51d2d8194d97d21ac0de03310277a834a07ff9e5 /sys/arch/i386/include/tcb.h | |
parent | 4d07626c83fd67ebd711862e68ce70ffdd3ac2c1 (diff) |
TCB_GET_MEMBER() is no longer used after the TIB changes
Diffstat (limited to 'sys/arch/i386/include/tcb.h')
-rw-r--r-- | sys/arch/i386/include/tcb.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/arch/i386/include/tcb.h b/sys/arch/i386/include/tcb.h index 1769686224d..1c12ec2bc50 100644 --- a/sys/arch/i386/include/tcb.h +++ b/sys/arch/i386/include/tcb.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tcb.h,v 1.3 2015/11/10 06:06:35 guenther Exp $ */ +/* $OpenBSD: tcb.h,v 1.4 2016/09/04 08:49:35 guenther Exp $ */ /* * Copyright (c) 2011 Philip Guenther <guenther@openbsd.org> * @@ -30,8 +30,6 @@ #else /* _KERNEL */ -#include <stddef.h> /* for offsetof */ - /* ELF TLS ABI calls for big TCB, with static TLS data at negative offsets */ #define TLS_VARIANT 2 @@ -47,12 +45,7 @@ __i386_read_tcb(int offset) /* Get a pointer to the TCB itself */ #define TCB_GET() __i386_read_tcb(0) -/* Get the value of a specific member in the TCB */ -#define TCB_GET_MEMBER(member) \ - __i386_read_tcb(offsetof(struct thread_control_block, member)) - /* Setting the TCB pointer can only be done via syscall, so no TCB_SET() */ #endif /* _KERNEL */ - #endif /* _MACHINE_TCB_H_ */ |