diff options
Diffstat (limited to 'sys/ia64/include/cpufunc.h')
| -rw-r--r-- | sys/ia64/include/cpufunc.h | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/sys/ia64/include/cpufunc.h b/sys/ia64/include/cpufunc.h index 713ecf49239e..e7cf818021fc 100644 --- a/sys/ia64/include/cpufunc.h +++ b/sys/ia64/include/cpufunc.h @@ -34,7 +34,7 @@ #include <sys/types.h> #include <machine/ia64_cpu.h> -#define CRITICAL_FORK (ia64_get_psr() | IA64_PSR_I) +struct thread; #ifdef __GNUC__ @@ -300,17 +300,10 @@ intr_restore(critical_t psr) __asm __volatile ("mov psr.l=%0;; srlz.d" :: "r" (psr)); } -static __inline critical_t -cpu_critical_enter(void) -{ - return (intr_disable()); -} - -static __inline void -cpu_critical_exit(critical_t psr) -{ - intr_restore(psr); -} +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 */ |
