]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kern/cpu_data.h
xnu-792.tar.gz
[apple/xnu.git] / osfmk / kern / cpu_data.h
index eee782728d2d308f236b98926cecf1b5e5258ea2..25ea592543c93d64443237b3c59c5037c207de8b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2000-2005 Apple Computer, Inc. All rights reserved.
  *
  * @APPLE_LICENSE_HEADER_START@
  * 
  * @OSF_COPYRIGHT@
  */
 
-#ifndef        _CPU_DATA_H_
-#define        _CPU_DATA_H_
+#ifdef XNU_KERNEL_PRIVATE
 
-#include <sys/appleapiopts.h>
+#ifndef        _KERN_CPU_DATA_H_
+#define        _KERN_CPU_DATA_H_
 
-#ifdef __APPLE_API_PRIVATE
+#include <mach/mach_types.h>
+#include <sys/cdefs.h>
 
 #ifdef MACH_KERNEL_PRIVATE
 
-#include <cpus.h>
-#include <mach/mach_types.h>
-
 #include <machine/cpu_data.h>
 
-#else  /* MACH_KERNEL_PRIVATE */
-
-#define disable_preemption()                   _disable_preemption()
-#define enable_preemption()                    _enable_preemption()
-#define enable_preemption_no_check()           _enable_preemption_no_check()
-
 #endif /* MACH_KERNEL_PRIVATE */
 
-#endif /* __APPLE_API_PRIVATE */
+__BEGIN_DECLS
 
-#ifdef __APPLE_API_UNSTABLE
+extern void            _disable_preemption(void);
+extern void            _enable_preemption(void);
 
-#if            !defined(MACH_KERNEL_PRIVATE)
+#define disable_preemption()                   _disable_preemption()
+#define enable_preemption()                    _enable_preemption()
 
-extern thread_t                        current_thread(void);
 
-#endif /* MACH_KERNEL_PRIVATE */
+__END_DECLS
 
-#endif /* __APPLE_API_UNSTABLE */
+#endif /* _KERN_CPU_DATA_H_ */
 
-#endif /* _CPU_DATA_H_ */
+#endif /* XNU_KERNEL_PRIVATE */