summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/sys/systm.h
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/sys/sys/systm.h')
-rw-r--r--freebsd/sys/sys/systm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/freebsd/sys/sys/systm.h b/freebsd/sys/sys/systm.h
index 18ca646f..5f894cf6 100644
--- a/freebsd/sys/sys/systm.h
+++ b/freebsd/sys/sys/systm.h
@@ -209,13 +209,13 @@ void critical_exit(void);
static __inline void
critical_enter(void)
{
- _Thread_Disable_dispatch();
+ _Thread_Dispatch_disable();
}
static __inline void
critical_exit(void)
{
- _Thread_Enable_dispatch();
+ _Thread_Dispatch_enable(_Per_CPU_Get());
}
#endif /* __rtems__ */
void init_param1(void);