]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/i386/thread_act.h
xnu-517.tar.gz
[apple/xnu.git] / osfmk / i386 / thread_act.h
index 2ce6893288d1a583adad5f18e4c367276a82d38b..bd2b336459cc7ad17ceb6d2452ccbac11777de74 100644 (file)
@@ -3,19 +3,22 @@
  *
  * @APPLE_LICENSE_HEADER_START@
  * 
- * The contents of this file constitute Original Code as defined in and
- * are subject to the Apple Public Source License Version 1.1 (the
- * "License").  You may not use this file except in compliance with the
- * License.  Please obtain a copy of the License at
- * http://www.apple.com/publicsource and read it before using this file.
+ * Copyright (c) 1999-2003 Apple Computer, Inc.  All Rights Reserved.
  * 
- * This Original Code and all software distributed under the License are
- * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this
+ * file.
+ * 
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
- * License for the specific language governing rights and limitations
- * under the License.
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
  * 
  * @APPLE_LICENSE_HEADER_END@
  */
@@ -35,6 +38,7 @@
 
 #include <i386/iopb.h>
 #include <i386/tss.h>
+#include <i386/seg.h>
 #include <i386/eflags.h>
 
 /*
@@ -63,6 +67,8 @@ struct i386_fpsave_state {
        boolean_t               fp_valid;
        struct i386_fp_save     fp_save_state;
        struct i386_fp_regs     fp_regs;
+        struct i386_fx_save    fx_save_state __attribute__ ((aligned (16)));
+       int                     fp_save_flavor;
 };
 
 /*
@@ -88,6 +94,8 @@ struct v86_assist_state {
  */
 
 struct i386_interrupt_state {
+        int     gs;
+        int     fs;
        int     es;
        int     ds;
        int     edx;
@@ -134,6 +142,7 @@ typedef struct pcb {
        struct i386_machine_state ims;
 #ifdef MACH_BSD
        unsigned long   cthread_self;           /* for use of cthread package */
+        struct real_descriptor cthread_desc;
 #endif
        decl_simple_lock_data(,lock)
 } *pcb_t;
@@ -172,4 +181,8 @@ extern void *act_thread_csave(void);
 extern void act_thread_catt(void *ctx);
 extern void act_thread_cfree(void *ctx);
 
+extern vm_offset_t active_stacks[NCPUS];
+extern vm_offset_t kernel_stack[NCPUS];
+extern thread_act_t active_kloaded[NCPUS];
+
 #endif /* _I386_THREAD_ACT_H_ */