summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/alpha/include/tcb.h33
-rw-r--r--sys/arch/arm/include/tcb.h33
-rw-r--r--sys/arch/armish/include/tcb.h3
-rw-r--r--sys/arch/aviion/include/tcb.h3
-rw-r--r--sys/arch/beagle/include/tcb.h3
-rw-r--r--sys/arch/gumstix/include/tcb.h3
-rw-r--r--sys/arch/hp300/include/tcb.h3
-rw-r--r--sys/arch/hppa/include/tcb.h33
-rw-r--r--sys/arch/hppa64/include/tcb.h33
-rw-r--r--sys/arch/ia64/include/tcb.h33
-rw-r--r--sys/arch/landisk/include/tcb.h3
-rw-r--r--sys/arch/loongson/include/tcb.h3
-rw-r--r--sys/arch/luna88k/include/tcb.h3
-rw-r--r--sys/arch/m68k/include/tcb.h33
-rw-r--r--sys/arch/m88k/include/tcb.h33
-rw-r--r--sys/arch/mac68k/include/tcb.h3
-rw-r--r--sys/arch/macppc/include/tcb.h3
-rw-r--r--sys/arch/mips64/include/tcb.h33
-rw-r--r--sys/arch/mvme68k/include/tcb.h3
-rw-r--r--sys/arch/mvme88k/include/tcb.h3
-rw-r--r--sys/arch/octeon/include/tcb.h3
-rw-r--r--sys/arch/palm/include/tcb.h3
-rw-r--r--sys/arch/powerpc/include/tcb.h33
-rw-r--r--sys/arch/sgi/include/tcb.h3
-rw-r--r--sys/arch/sh/include/tcb.h33
-rw-r--r--sys/arch/socppc/include/tcb.h3
-rw-r--r--sys/arch/solbourne/include/tcb.h3
-rw-r--r--sys/arch/vax/include/tcb.h33
-rw-r--r--sys/arch/zaurus/include/tcb.h3
29 files changed, 417 insertions, 0 deletions
diff --git a/sys/arch/alpha/include/tcb.h b/sys/arch/alpha/include/tcb.h
new file mode 100644
index 00000000000..1305f9fb96d
--- /dev/null
+++ b/sys/arch/alpha/include/tcb.h
@@ -0,0 +1,33 @@
+/* $OpenBSD: tcb.h,v 1.1 2011/10/27 04:01:17 guenther Exp $ */
+
+/*
+ * Copyright (c) 2011 Philip Guenther <guenther@openbsd.org>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifndef _MACHINE_TCB_H_
+#define _MACHINE_TCB_H_
+
+#ifdef _KERNEL
+
+#error "not yet"
+
+#else /* _KERNEL */
+
+/* ELF TLS ABI calls for small TCB, with static TLS data after it */
+#define TLS_VARIANT 1
+
+#endif /* _KERNEL */
+
+#endif /* _MACHINE_TCB_H_ */
diff --git a/sys/arch/arm/include/tcb.h b/sys/arch/arm/include/tcb.h
new file mode 100644
index 00000000000..1305f9fb96d
--- /dev/null
+++ b/sys/arch/arm/include/tcb.h
@@ -0,0 +1,33 @@
+/* $OpenBSD: tcb.h,v 1.1 2011/10/27 04:01:17 guenther Exp $ */
+
+/*
+ * Copyright (c) 2011 Philip Guenther <guenther@openbsd.org>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifndef _MACHINE_TCB_H_
+#define _MACHINE_TCB_H_
+
+#ifdef _KERNEL
+
+#error "not yet"
+
+#else /* _KERNEL */
+
+/* ELF TLS ABI calls for small TCB, with static TLS data after it */
+#define TLS_VARIANT 1
+
+#endif /* _KERNEL */
+
+#endif /* _MACHINE_TCB_H_ */
diff --git a/sys/arch/armish/include/tcb.h b/sys/arch/armish/include/tcb.h
new file mode 100644
index 00000000000..fadb286a01a
--- /dev/null
+++ b/sys/arch/armish/include/tcb.h
@@ -0,0 +1,3 @@
+/* $OpenBSD: tcb.h,v 1.1 2011/10/27 04:01:17 guenther Exp $ */
+
+#include <arm/tcb.h>
diff --git a/sys/arch/aviion/include/tcb.h b/sys/arch/aviion/include/tcb.h
new file mode 100644
index 00000000000..dcb595f8a94
--- /dev/null
+++ b/sys/arch/aviion/include/tcb.h
@@ -0,0 +1,3 @@
+/* $OpenBSD: tcb.h,v 1.1 2011/10/27 04:01:17 guenther Exp $ */
+
+#include <m88k/tcb.h>
diff --git a/sys/arch/beagle/include/tcb.h b/sys/arch/beagle/include/tcb.h
new file mode 100644
index 00000000000..fadb286a01a
--- /dev/null
+++ b/sys/arch/beagle/include/tcb.h
@@ -0,0 +1,3 @@
+/* $OpenBSD: tcb.h,v 1.1 2011/10/27 04:01:17 guenther Exp $ */
+
+#include <arm/tcb.h>
diff --git a/sys/arch/gumstix/include/tcb.h b/sys/arch/gumstix/include/tcb.h
new file mode 100644
index 00000000000..fadb286a01a
--- /dev/null
+++ b/sys/arch/gumstix/include/tcb.h
@@ -0,0 +1,3 @@
+/* $OpenBSD: tcb.h,v 1.1 2011/10/27 04:01:17 guenther Exp $ */
+
+#include <arm/tcb.h>
diff --git a/sys/arch/hp300/include/tcb.h b/sys/arch/hp300/include/tcb.h
new file mode 100644
index 00000000000..34ed3c65c1d
--- /dev/null
+++ b/sys/arch/hp300/include/tcb.h
@@ -0,0 +1,3 @@
+/* $OpenBSD: tcb.h,v 1.1 2011/10/27 04:01:17 guenther Exp $ */
+
+#include <m68k/tcb.h>
diff --git a/sys/arch/hppa/include/tcb.h b/sys/arch/hppa/include/tcb.h
new file mode 100644
index 00000000000..1305f9fb96d
--- /dev/null
+++ b/sys/arch/hppa/include/tcb.h
@@ -0,0 +1,33 @@
+/* $OpenBSD: tcb.h,v 1.1 2011/10/27 04:01:17 guenther Exp $ */
+
+/*
+ * Copyright (c) 2011 Philip Guenther <guenther@openbsd.org>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifndef _MACHINE_TCB_H_
+#define _MACHINE_TCB_H_
+
+#ifdef _KERNEL
+
+#error "not yet"
+
+#else /* _KERNEL */
+
+/* ELF TLS ABI calls for small TCB, with static TLS data after it */
+#define TLS_VARIANT 1
+
+#endif /* _KERNEL */
+
+#endif /* _MACHINE_TCB_H_ */
diff --git a/sys/arch/hppa64/include/tcb.h b/sys/arch/hppa64/include/tcb.h
new file mode 100644
index 00000000000..1305f9fb96d
--- /dev/null
+++ b/sys/arch/hppa64/include/tcb.h
@@ -0,0 +1,33 @@
+/* $OpenBSD: tcb.h,v 1.1 2011/10/27 04:01:17 guenther Exp $ */
+
+/*
+ * Copyright (c) 2011 Philip Guenther <guenther@openbsd.org>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifndef _MACHINE_TCB_H_
+#define _MACHINE_TCB_H_
+
+#ifdef _KERNEL
+
+#error "not yet"
+
+#else /* _KERNEL */
+
+/* ELF TLS ABI calls for small TCB, with static TLS data after it */
+#define TLS_VARIANT 1
+
+#endif /* _KERNEL */
+
+#endif /* _MACHINE_TCB_H_ */
diff --git a/sys/arch/ia64/include/tcb.h b/sys/arch/ia64/include/tcb.h
new file mode 100644
index 00000000000..1305f9fb96d
--- /dev/null
+++ b/sys/arch/ia64/include/tcb.h
@@ -0,0 +1,33 @@
+/* $OpenBSD: tcb.h,v 1.1 2011/10/27 04:01:17 guenther Exp $ */
+
+/*
+ * Copyright (c) 2011 Philip Guenther <guenther@openbsd.org>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifndef _MACHINE_TCB_H_
+#define _MACHINE_TCB_H_
+
+#ifdef _KERNEL
+
+#error "not yet"
+
+#else /* _KERNEL */
+
+/* ELF TLS ABI calls for small TCB, with static TLS data after it */
+#define TLS_VARIANT 1
+
+#endif /* _KERNEL */
+
+#endif /* _MACHINE_TCB_H_ */
diff --git a/sys/arch/landisk/include/tcb.h b/sys/arch/landisk/include/tcb.h
new file mode 100644
index 00000000000..6c8e66768b6
--- /dev/null
+++ b/sys/arch/landisk/include/tcb.h
@@ -0,0 +1,3 @@
+/* $OpenBSD: tcb.h,v 1.1 2011/10/27 04:01:17 guenther Exp $ */
+
+#include <sh/tcb.h>
diff --git a/sys/arch/loongson/include/tcb.h b/sys/arch/loongson/include/tcb.h
new file mode 100644
index 00000000000..fa86066c5f9
--- /dev/null
+++ b/sys/arch/loongson/include/tcb.h
@@ -0,0 +1,3 @@
+/* $OpenBSD: tcb.h,v 1.1 2011/10/27 04:01:17 guenther Exp $ */
+
+#include <mips64/tcb.h>
diff --git a/sys/arch/luna88k/include/tcb.h b/sys/arch/luna88k/include/tcb.h
new file mode 100644
index 00000000000..dcb595f8a94
--- /dev/null
+++ b/sys/arch/luna88k/include/tcb.h
@@ -0,0 +1,3 @@
+/* $OpenBSD: tcb.h,v 1.1 2011/10/27 04:01:17 guenther Exp $ */
+
+#include <m88k/tcb.h>
diff --git a/sys/arch/m68k/include/tcb.h b/sys/arch/m68k/include/tcb.h
new file mode 100644
index 00000000000..03109f8a103
--- /dev/null
+++ b/sys/arch/m68k/include/tcb.h
@@ -0,0 +1,33 @@
+/* $OpenBSD: tcb.h,v 1.1 2011/10/27 04:01:17 guenther Exp $ */
+
+/*
+ * Copyright (c) 2011 Philip Guenther <guenther@openbsd.org>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifndef _MACHINE_TCB_H_
+#define _MACHINE_TCB_H_
+
+#ifdef _KERNEL
+
+#error "not yet"
+
+#else /* _KERNEL */
+
+/* Not ELF, so for now use a big TCB to save a memory reference for errno */
+#define TLS_VARIANT 2
+
+#endif /* _KERNEL */
+
+#endif /* _MACHINE_TCB_H_ */
diff --git a/sys/arch/m88k/include/tcb.h b/sys/arch/m88k/include/tcb.h
new file mode 100644
index 00000000000..03109f8a103
--- /dev/null
+++ b/sys/arch/m88k/include/tcb.h
@@ -0,0 +1,33 @@
+/* $OpenBSD: tcb.h,v 1.1 2011/10/27 04:01:17 guenther Exp $ */
+
+/*
+ * Copyright (c) 2011 Philip Guenther <guenther@openbsd.org>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifndef _MACHINE_TCB_H_
+#define _MACHINE_TCB_H_
+
+#ifdef _KERNEL
+
+#error "not yet"
+
+#else /* _KERNEL */
+
+/* Not ELF, so for now use a big TCB to save a memory reference for errno */
+#define TLS_VARIANT 2
+
+#endif /* _KERNEL */
+
+#endif /* _MACHINE_TCB_H_ */
diff --git a/sys/arch/mac68k/include/tcb.h b/sys/arch/mac68k/include/tcb.h
new file mode 100644
index 00000000000..34ed3c65c1d
--- /dev/null
+++ b/sys/arch/mac68k/include/tcb.h
@@ -0,0 +1,3 @@
+/* $OpenBSD: tcb.h,v 1.1 2011/10/27 04:01:17 guenther Exp $ */
+
+#include <m68k/tcb.h>
diff --git a/sys/arch/macppc/include/tcb.h b/sys/arch/macppc/include/tcb.h
new file mode 100644
index 00000000000..3b77da57784
--- /dev/null
+++ b/sys/arch/macppc/include/tcb.h
@@ -0,0 +1,3 @@
+/* $OpenBSD: tcb.h,v 1.1 2011/10/27 04:01:17 guenther Exp $ */
+
+#include <powerpc/tcb.h>
diff --git a/sys/arch/mips64/include/tcb.h b/sys/arch/mips64/include/tcb.h
new file mode 100644
index 00000000000..1305f9fb96d
--- /dev/null
+++ b/sys/arch/mips64/include/tcb.h
@@ -0,0 +1,33 @@
+/* $OpenBSD: tcb.h,v 1.1 2011/10/27 04:01:17 guenther Exp $ */
+
+/*
+ * Copyright (c) 2011 Philip Guenther <guenther@openbsd.org>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifndef _MACHINE_TCB_H_
+#define _MACHINE_TCB_H_
+
+#ifdef _KERNEL
+
+#error "not yet"
+
+#else /* _KERNEL */
+
+/* ELF TLS ABI calls for small TCB, with static TLS data after it */
+#define TLS_VARIANT 1
+
+#endif /* _KERNEL */
+
+#endif /* _MACHINE_TCB_H_ */
diff --git a/sys/arch/mvme68k/include/tcb.h b/sys/arch/mvme68k/include/tcb.h
new file mode 100644
index 00000000000..34ed3c65c1d
--- /dev/null
+++ b/sys/arch/mvme68k/include/tcb.h
@@ -0,0 +1,3 @@
+/* $OpenBSD: tcb.h,v 1.1 2011/10/27 04:01:17 guenther Exp $ */
+
+#include <m68k/tcb.h>
diff --git a/sys/arch/mvme88k/include/tcb.h b/sys/arch/mvme88k/include/tcb.h
new file mode 100644
index 00000000000..dcb595f8a94
--- /dev/null
+++ b/sys/arch/mvme88k/include/tcb.h
@@ -0,0 +1,3 @@
+/* $OpenBSD: tcb.h,v 1.1 2011/10/27 04:01:17 guenther Exp $ */
+
+#include <m88k/tcb.h>
diff --git a/sys/arch/octeon/include/tcb.h b/sys/arch/octeon/include/tcb.h
new file mode 100644
index 00000000000..fa86066c5f9
--- /dev/null
+++ b/sys/arch/octeon/include/tcb.h
@@ -0,0 +1,3 @@
+/* $OpenBSD: tcb.h,v 1.1 2011/10/27 04:01:17 guenther Exp $ */
+
+#include <mips64/tcb.h>
diff --git a/sys/arch/palm/include/tcb.h b/sys/arch/palm/include/tcb.h
new file mode 100644
index 00000000000..fadb286a01a
--- /dev/null
+++ b/sys/arch/palm/include/tcb.h
@@ -0,0 +1,3 @@
+/* $OpenBSD: tcb.h,v 1.1 2011/10/27 04:01:17 guenther Exp $ */
+
+#include <arm/tcb.h>
diff --git a/sys/arch/powerpc/include/tcb.h b/sys/arch/powerpc/include/tcb.h
new file mode 100644
index 00000000000..1305f9fb96d
--- /dev/null
+++ b/sys/arch/powerpc/include/tcb.h
@@ -0,0 +1,33 @@
+/* $OpenBSD: tcb.h,v 1.1 2011/10/27 04:01:17 guenther Exp $ */
+
+/*
+ * Copyright (c) 2011 Philip Guenther <guenther@openbsd.org>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifndef _MACHINE_TCB_H_
+#define _MACHINE_TCB_H_
+
+#ifdef _KERNEL
+
+#error "not yet"
+
+#else /* _KERNEL */
+
+/* ELF TLS ABI calls for small TCB, with static TLS data after it */
+#define TLS_VARIANT 1
+
+#endif /* _KERNEL */
+
+#endif /* _MACHINE_TCB_H_ */
diff --git a/sys/arch/sgi/include/tcb.h b/sys/arch/sgi/include/tcb.h
new file mode 100644
index 00000000000..fa86066c5f9
--- /dev/null
+++ b/sys/arch/sgi/include/tcb.h
@@ -0,0 +1,3 @@
+/* $OpenBSD: tcb.h,v 1.1 2011/10/27 04:01:17 guenther Exp $ */
+
+#include <mips64/tcb.h>
diff --git a/sys/arch/sh/include/tcb.h b/sys/arch/sh/include/tcb.h
new file mode 100644
index 00000000000..1305f9fb96d
--- /dev/null
+++ b/sys/arch/sh/include/tcb.h
@@ -0,0 +1,33 @@
+/* $OpenBSD: tcb.h,v 1.1 2011/10/27 04:01:17 guenther Exp $ */
+
+/*
+ * Copyright (c) 2011 Philip Guenther <guenther@openbsd.org>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifndef _MACHINE_TCB_H_
+#define _MACHINE_TCB_H_
+
+#ifdef _KERNEL
+
+#error "not yet"
+
+#else /* _KERNEL */
+
+/* ELF TLS ABI calls for small TCB, with static TLS data after it */
+#define TLS_VARIANT 1
+
+#endif /* _KERNEL */
+
+#endif /* _MACHINE_TCB_H_ */
diff --git a/sys/arch/socppc/include/tcb.h b/sys/arch/socppc/include/tcb.h
new file mode 100644
index 00000000000..3b77da57784
--- /dev/null
+++ b/sys/arch/socppc/include/tcb.h
@@ -0,0 +1,3 @@
+/* $OpenBSD: tcb.h,v 1.1 2011/10/27 04:01:17 guenther Exp $ */
+
+#include <powerpc/tcb.h>
diff --git a/sys/arch/solbourne/include/tcb.h b/sys/arch/solbourne/include/tcb.h
new file mode 100644
index 00000000000..bcee572df7e
--- /dev/null
+++ b/sys/arch/solbourne/include/tcb.h
@@ -0,0 +1,3 @@
+/* $OpenBSD: tcb.h,v 1.1 2011/10/27 04:01:17 guenther Exp $ */
+
+#include <sparc/tcb.h>
diff --git a/sys/arch/vax/include/tcb.h b/sys/arch/vax/include/tcb.h
new file mode 100644
index 00000000000..03109f8a103
--- /dev/null
+++ b/sys/arch/vax/include/tcb.h
@@ -0,0 +1,33 @@
+/* $OpenBSD: tcb.h,v 1.1 2011/10/27 04:01:17 guenther Exp $ */
+
+/*
+ * Copyright (c) 2011 Philip Guenther <guenther@openbsd.org>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifndef _MACHINE_TCB_H_
+#define _MACHINE_TCB_H_
+
+#ifdef _KERNEL
+
+#error "not yet"
+
+#else /* _KERNEL */
+
+/* Not ELF, so for now use a big TCB to save a memory reference for errno */
+#define TLS_VARIANT 2
+
+#endif /* _KERNEL */
+
+#endif /* _MACHINE_TCB_H_ */
diff --git a/sys/arch/zaurus/include/tcb.h b/sys/arch/zaurus/include/tcb.h
new file mode 100644
index 00000000000..8e582b69962
--- /dev/null
+++ b/sys/arch/zaurus/include/tcb.h
@@ -0,0 +1,3 @@
+/* $OpenBSD: tcb.h,v 1.1 2011/10/27 04:01:18 guenther Exp $ */
+
+#include <arm/tcb.h>