Change cpu_critical_enter/exit to intr_disable/restore.
This commit is contained in:
parent
dea7dd81b7
commit
35064c1d50
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user