summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/include
diff options
context:
space:
mode:
Diffstat (limited to 'sys/powerpc/include')
-rw-r--r--sys/powerpc/include/cpufunc.h29
-rw-r--r--sys/powerpc/include/proc.h1
2 files changed, 8 insertions, 22 deletions
diff --git a/sys/powerpc/include/cpufunc.h b/sys/powerpc/include/cpufunc.h
index 7ea27b0..b788aa6 100644
--- a/sys/powerpc/include/cpufunc.h
+++ b/sys/powerpc/include/cpufunc.h
@@ -35,7 +35,7 @@
#include <machine/psl.h>
-#define CRITICAL_FORK (mfmsr() | PSL_EE | PSL_RI)
+struct thread;
#ifdef __GNUC__
@@ -108,20 +108,6 @@ intr_restore(register_t msr)
mtmsr(msr);
}
-static __inline critical_t
-cpu_critical_enter(void)
-{
- u_int msr;
- critical_t crit;
-
- msr = mfmsr();
- crit = (critical_t)msr;
- msr &= ~(PSL_EE | PSL_RI);
- mtmsr(msr);
-
- return (crit);
-}
-
static __inline void
restore_intr(unsigned int msr)
{
@@ -130,13 +116,6 @@ restore_intr(unsigned int msr)
}
static __inline void
-cpu_critical_exit(critical_t msr)
-{
-
- mtmsr(msr);
-}
-
-static __inline void
powerpc_mb(void)
{
@@ -153,6 +132,12 @@ powerpc_get_pcpup(void)
return(ret);
}
+void cpu_critical_enter(void);
+void cpu_critical_exit(void);
+void cpu_critical_fork_exit(void);
+void cpu_thread_link(struct thread *td);
+
+
#endif /* _KERNEL */
#endif /* !_MACHINE_CPUFUNC_H_ */
diff --git a/sys/powerpc/include/proc.h b/sys/powerpc/include/proc.h
index 82aa068..e307b24 100644
--- a/sys/powerpc/include/proc.h
+++ b/sys/powerpc/include/proc.h
@@ -39,6 +39,7 @@
* Machine-dependent part of the proc structure
*/
struct mdthread {
+ register_t md_savecrit;
};
struct mdproc {
OpenPOWER on IntegriCloud