summaryrefslogtreecommitdiffstats
path: root/lib/libkse/arch/i386
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2003-06-23 23:15:06 +0000
committermarcel <marcel@FreeBSD.org>2003-06-23 23:15:06 +0000
commit931dcaae39f62974707109a3d22e0bfa45f092f3 (patch)
treee9269a536ef75030f6ad84fd11c5713deb1f0026 /lib/libkse/arch/i386
parentf71f9df706a36ec25fdbde2e8451b6109e64ea0d (diff)
downloadFreeBSD-src-931dcaae39f62974707109a3d22e0bfa45f092f3.zip
FreeBSD-src-931dcaae39f62974707109a3d22e0bfa45f092f3.tar.gz
Untangle the inter-dependency of kse types and ksd types/functions
by moving the definition of struct ksd to pthread_md.h and removing the inclusion of ksd.h from thr_private.h (which has the definition of struct kse and kse_critical_t). This allows ksd.h to have inline functions that use struct kse and kse_critical_t and generally yields a cleaner implementation at the cost of not having all ksd related types/definitions in one header. Implement the ksd functionality on ia64 by using inline functions and permanently remove ksd.c from the ia64 specific makefile. This change does not clean up the i386 specific version of ksd.h. NOTE: The ksd code on ia64 abuses the tp register in the same way as it is abused in libthr in that it is incompatible with the runtime specification. This will be address when support for TLS hits the tree.
Diffstat (limited to 'lib/libkse/arch/i386')
-rw-r--r--lib/libkse/arch/i386/include/pthread_md.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/libkse/arch/i386/include/pthread_md.h b/lib/libkse/arch/i386/include/pthread_md.h
index cb5a344..ad0dfd6 100644
--- a/lib/libkse/arch/i386/include/pthread_md.h
+++ b/lib/libkse/arch/i386/include/pthread_md.h
@@ -51,4 +51,16 @@ extern int _thr_getcontext(ucontext_t *);
#define THR_ALIGNBYTES 15
#define THR_ALIGN(td) (((unsigned)(td) + THR_ALIGNBYTES) & ~THR_ALIGNBYTES)
+
+/*
+ * KSE Specific Data.
+ */
+struct ksd {
+ int ldt;
+#define KSDF_INITIALIZED 0x01
+ long flags;
+ void *base;
+ long size;
+};
+
#endif
OpenPOWER on IntegriCloud