Re: Clock Error

Jan-Benedict Glaw <[email protected]>
Newsgroups gmane.os.netbsd.ports.vax
Message-ID <[email protected]>
On Tue, 2023-12-19 17:45:34 -0500, Mouse <[email protected]> wrote:
> >> I wonder if idle detection plays a role...
> > I have idle detection enabled, and it is working.
> 
> Oh, that reminds me: what is it that simh recognizes as an idle loop?
> Someone quoted the code here, but (a) that was a long time ago and I'm
> not sure I can find it easily and (b) it doesn't clearly delinate what
> signals simh versus what is unrelated accident-of-the-implementation
> code.


sys/arch/vax/include/cpu.h:

168 /*
169  * This allows SIMH to recognize the kernel wants to sleep.
170  */
171 static inline void
172 cpu_idle(void)
173 {
174         int ipl = mfpr(PR_IPL);
175         mtpr(1, PR_IPL);
176         mtpr(ipl, PR_IPL);
177 }


MfG, JBG

--
signature.asc (application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQQlDTvPcScNjKREqWEdvV51g5nhuwUCZYIeLQAKCRAdvV51g5nh
u6nfAJ95UsarTkSWkHTzBoMFsayDWJDjYwCfUo/rT1Lbdgbg86PXcboJRX33PVY=
=CFaA
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.