Moved the constructor for the initial TEB to ntdll so that it runs as
early as possible on startup.
diff --git a/include/thread.h b/include/thread.h
index dd7d0db..727807e 100644
--- a/include/thread.h
+++ b/include/thread.h
@@ -125,7 +125,7 @@
/* the following are nt specific fields */
DWORD pad6[624]; /* --n 238 */
UNICODE_STRING StaticUnicodeString; /* -2- bf8 used by advapi32 */
- USHORT StaticUnicodeBuffer[261]; /* -2- c00 used by advapi32 */
+ WCHAR StaticUnicodeBuffer[261]; /* -2- c00 used by advapi32 */
PVOID DeallocationStack; /* -2- e0c Base of the stack */
LPVOID TlsSlots[64]; /* -2- e10 Thread local storage */
LIST_ENTRY TlsLinks; /* -2- f10 */
@@ -145,7 +145,6 @@
/* scheduler/thread.c */
-extern void THREAD_Init(void);
extern TEB *THREAD_InitStack( TEB *teb, DWORD stack_size );
/* scheduler/sysdeps.c */