Subject: Re: kernel profiling?
To: None <simonb@NetBSD.ORG>
From: Toru Nishimura <nisimura@itc.aist-nara.ac.jp>
List: port-mips
Date: 03/29/2000 11:35:50
> I'd still need to remember the status on the way in.  Maybe something
> like
>
>        #define MCOUNT_ENTER    s = _disable_intr()
>        #define MCOUNT_EXIT     if (s) { _enable_intr() }
>
> where _disable_intr clears MIPS_SR_INT_IE and returns its status and
> _enable_intr sets MIPS_SR_INT_IE would be quicker?

They cost same, unfortunately.  eli()/cli() or some would be ok.

Tohru Nishimura