Path: utzoo!attcan!uunet!samsung!munnari.oz.au!metro!natmlab.dap.csiro.au!ditsydh.syd.dit.CSIRO.AU!evans From: evans@syd.dit.CSIRO.AU (Bruce.Evans) Newsgroups: comp.os.minix Subject: Re: PC Minix 1.5 Kernel Message-ID: <1990Sep18.052600.9091@syd.dit.CSIRO.AU> Date: 18 Sep 90 05:26:00 GMT References: <6288@hub.ucsb.edu> Organization: CSIRO Division of Info Tech, Sydney, Australia Lines: 31 In article <6288@hub.ucsb.edu> mcm@maple.ucsb.edu (Marcelo Mourier) writes: >The kernel in PC Minix 1.5 uses a global variable 'snow' to identify video >cards that produce snowy displays; ... However, I couldn't >find any piece of code where its value could be changed to TRUE. It was intended to be set using an ioctl or escape sequence, or from the boot menu. No one got around to doing it for 1.5.10. The virtual consoles driver sets it with an escape sequence. >the only reference to 'snow' is in klib.x, line 885: cmpb _snow,#0 , where >it is treated as a byte (char), instead of as a word (int)...???!!!! It should be set to 1 so it is a waste of time (on an 8088) to test the high bits. I declared it as int because that is what is done for other boolean variables in the Minix kernel (though I don't like that - they should be bool_t :-). >The second question is regarding the keyboard hardware in the PC-AT. In >these machines it doesn't seem to be necessary to acknowledge the char to >the keyboard controller (i8042); at least not in the way it's done now by >scan_keyboard() in kernel/keyboard.c. In that function the char read from I don't think anyone realised it is different for an AT. Provided the unnecessary code is not harmful, it saves a little source code not to test for an AT, while the extra runtime is not important. Actually, it may be harmful. The same port/bit is used on PS/2 models 50 and higher to acknowledge the clock interrupt (CLOCK_* in sconst.h). I used to think the bits were doubled up somehow to prevent interference. -- Bruce Evans evans@syd.dit.csiro.au