Change cpu_critical_enter/exit to intr_disable/restore.

This commit is contained in:
dfr 2002-03-21 09:35:18 +00:00
parent dea7dd81b7
commit 35064c1d50

View File

@ -100,9 +100,9 @@ _mcount: \n\
* The following two macros do splhigh and splx respectively.
*/
#define MCOUNT_ENTER(s) \n\
_c = cpu_critical_enter()
_c = intr_disable()
#define MCOUNT_EXIT(s) \n\
cpu_critical_exit(_c)
intr_restore(_c)
#define MCOUNT_DECL(s) critical_t c;
#ifdef GUPROF
struct gmonparam;