Subject: Re: console polling interrupts
To: None <tech-kern@netbsd.org>
From: Jaromír <jdolecek@netbsd.org>
List: tech-kern
Date: 06/17/2001 18:25:05
Well, it seems there is a keyboard interrupt enable bit
in controller mode byte (we don't use this, I looked into Linux driver).
However, that command fails with my controller, so it's not particularily
usable :(

It occured to me that one possible 'fix' to this problem would
be to raise spl in pckbd_cngetc(), e.g. change it to something like

	s = splhigh();
	for (;;) {
		val = pckbc_poll_data(t->t_kbctag, t->t_kbcslot);
		if ((val != -1) && pckbd_decode(t, val, type, data)) {
			splx(s);
			return;
		}
	}

It would be similar for pccons.

Probably no human being would be able to type anything between
cngetc() is called and cngetc() is ...

Jaromir
-- 
Jaromir Dolecek <jdolecek@NetBSD.org>      http://www.ics.muni.cz/~dolecek/
NetBSD - just plain best OS! -=*=- Got spare MCA cards or docs? Hand me them!