home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!mcsun!news.funet.fi!funic!nntp.hut.fi!nntp!jem
- From: jem@snakemail.hut.fi (Johan Myreen)
- Subject: Re: keyboard problems - v.99
- In-Reply-To: ammo@cc.gatech.edu's message of Tue, 15 Dec 1992 02:27:27 GMT
- Message-ID: <JEM.92Dec16212729@lk-hp-6.hut.fi>
- Sender: usenet@nntp.hut.fi (Usenet pseudouser id)
- Nntp-Posting-Host: lk-hp-6.hut.fi
- Organization: Helsinki University of Technology, Finland
- References: <1992Dec15.022727.27072@cc.gatech.edu>
- Date: 16 Dec 92 19:27:29 GMT
- Lines: 38
-
- In article <1992Dec15.022727.27072@cc.gatech.edu> ammo@cc.gatech.edu (Ammo Goettsch) writes:
-
- >Summary: setup.s kbd controller/vga mode bug reported in 89.pl6 is still there
-
- >the video mode. Does anybody know whether Johan Myreen's fix that was posted
- >for v.89.pl6 will work for v.99?
-
- This is strange, because the fix for the problem *is* in 0.99, only
- coded a little differently.
-
- Is anybody else having trouble with this?
-
- On a related note: does anybody know what the following lines in
- keyboard.c are good for? The same code (in assembler) is in
- boot/setup.S, too. Is this some kind of standard practice?
-
- pt_regs = (struct pt_regs *) int_pt_regs;
- scancode=inb_p(0x60);
- ! x=inb_p(0x61);
- ! outb_p(x|0x80, 0x61);
- ! outb_p(x&0x7f, 0x61);
- if (scancode == 0xe0)
- set_kbd_flag(KG_E0);
-
- The ins and outs toggle a bit in the keyboard controller's RAM. This
- RAM location is not documented by IBM, or at least I haven't been able
- to find it in the Technical References. The only documented i/o
- addresses are 0x60 (data) and 0x64 (status), and the keyboard driver
- should work perfectly without this bit fiddling. In fact, I even tried
- removing them, with no ill effects.
-
- (Yes, I know, the header in kernel/chr_drv/keyboard.c says I wrote
- the driver myself :-) But actually I just translated the asm version
- into C, and didn't dare to change anything.)
-
- --
- Johan Myreen
- jem@cs.hut.fi
-