summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/pcb.h
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2007-03-30 00:06:21 +0000
committerjkim <jkim@FreeBSD.org>2007-03-30 00:06:21 +0000
commit66aaf37941a1e49cbdbc657033b5c88cf4bbc89d (patch)
tree9d89cc517054300aafea61fc017fcfc6460f2207 /sys/amd64/include/pcb.h
parent68bc572d8f14058f355a3d461f630b411afc6ff0 (diff)
downloadFreeBSD-src-66aaf37941a1e49cbdbc657033b5c88cf4bbc89d.zip
FreeBSD-src-66aaf37941a1e49cbdbc657033b5c88cf4bbc89d.tar.gz
MFP4: Linux set_thread_area syscall (aka TLS) support for amd64.
Initial version was submitted by Divacky Roman and mostly rewritten by me. Tested by: emulation
Diffstat (limited to 'sys/amd64/include/pcb.h')
-rw-r--r--sys/amd64/include/pcb.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/amd64/include/pcb.h b/sys/amd64/include/pcb.h
index 3d71aa3..30516e9 100644
--- a/sys/amd64/include/pcb.h
+++ b/sys/amd64/include/pcb.h
@@ -41,6 +41,7 @@
* AMD64 process control block
*/
#include <machine/fpu.h>
+#include <machine/segments.h>
struct pcb {
register_t pcb_cr3;
@@ -73,6 +74,10 @@ struct pcb {
#define PCB_FULLCTX 0x80 /* full context restore on sysret */
caddr_t pcb_onfault; /* copyin/out fault recovery */
+
+ /* 32-bit segment descriptor */
+ struct user_segment_descriptor *pcb_gs32p;
+ struct user_segment_descriptor pcb_gs32sd;
};
#ifdef _KERNEL
OpenPOWER on IntegriCloud