Keyboard interrupt

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
distantvoices
Member
Member
Posts: 1600
Joined: Wed Oct 18, 2006 11:59 am
Location: Vienna/Austria
Contact:

Re:Keyboard interrupt

Post by distantvoices »

Ah, I've misplaced some letters: AEIOU (Alles Erdenreich Ist Oesterreich Untertan) - it is a boast of Kaiser Friedrich III (did some research in the internet). Means in english: all the earth is subject/tributary of austria. They 've been biiig braggers in those former times. *lol*

Hmmm... AEOI sounds nice *gg* how does one enable this one?
... the osdever formerly known as beyond infinity ...
BlueillusionOS iso image
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re:Keyboard interrupt

Post by Candy »

beyond infinity wrote: Hmmm... AEOI sounds nice *gg* how does one enable this one?
STFW? : http://www.google.nl/search?hl=xx-bork& ... e-a+Seerch for my borked google search result :D
distantvoices
Member
Member
Posts: 1600
Joined: Wed Oct 18, 2006 11:59 am
Location: Vienna/Austria
Contact:

Re:Keyboard interrupt

Post by distantvoices »

stfw: not like "L?s det j?vla manual" *lol*

you've caugth me being lazy *rofl*
... the osdever formerly known as beyond infinity ...
BlueillusionOS iso image
User avatar
bubach
Member
Member
Posts: 1223
Joined: Sat Oct 23, 2004 11:00 pm
Location: Sweden
Contact:

Re:Keyboard interrupt

Post by bubach »

<swedish>
"L?s det j?vla manual"
Kallar du det korrekt svenska?
</swedish>

/ Christoffer
"Simplicity is the ultimate sophistication."
http://bos.asmhackers.net/ - GitHub
distantvoices
Member
Member
Posts: 1600
Joined: Wed Oct 18, 2006 11:59 am
Location: Vienna/Austria
Contact:

Re:Keyboard interrupt

Post by distantvoices »

Nay, I don't even dare to do so. Too short my stay in sweden 's been.


<swedish>
"Jag can inte kaller det korrekt svenska"
</swedish>
... the osdever formerly known as beyond infinity ...
BlueillusionOS iso image
User avatar
bubach
Member
Member
Posts: 1223
Joined: Sat Oct 23, 2004 11:00 pm
Location: Sweden
Contact:

Re:Keyboard interrupt

Post by bubach »

nice.. :-)
how good are you on understanding?

<swedish>Hur l?nge bodde du i sverige och varf?r?</swedish>
"Simplicity is the ultimate sophistication."
http://bos.asmhackers.net/ - GitHub
distantvoices
Member
Member
Posts: 1600
Joined: Wed Oct 18, 2006 11:59 am
Location: Vienna/Austria
Contact:

Re:Keyboard interrupt

Post by distantvoices »

Understanding ... Reading a lot, deducing the meaning of words from english or german (there are some similarities) so I go along.

One sentence, I've learned whilst having fun in Ljungby: "Jag kan inte shrieker som en monster" *lol*

as for your question: Holidays - one week, filled with good swedish coffee (f?rlat - kan jag ha en potor) and nice people - relatives of my sunshine.
... the osdever formerly known as beyond infinity ...
BlueillusionOS iso image
User avatar
bubach
Member
Member
Posts: 1223
Joined: Sat Oct 23, 2004 11:00 pm
Location: Sweden
Contact:

Re:Keyboard interrupt

Post by bubach »

ok.. some spelling misstakes, but.. u seem to mix up "en" and "ett".. :-)
do u mean: Jag kan inte skrika(shout) som ett monster?
"Simplicity is the ultimate sophistication."
http://bos.asmhackers.net/ - GitHub
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Keyboard interrupt

Post by Pype.Clicker »

doh ... i got a bit lost ...

Actually, AEOI is the alternative to "intel infrastructure". On a "real" 8086-based system with a 'real' 8259, it would indeed make the PIC behave differently than expected (at your own risk).

With a modern system and chipset-emulated 82xx chips, you should not expect the "auto-EOI" feature to behave at all ... trying to set it will be ignored at best. Some of the features of the 82xx chips are limited by the way they were wired on the ancient motherboard. For instance, you could theorically select another pin that IRQ2 to receive slave signals on the master PIC, but as only the IRQ2 pin was wired to the 'cascade' pin, any other configuration wouldn't work. Many chipsets nowaday (intel ones, for instance) also ignore whatever you put on that register, assuming the sole working default setup for the PC architecture ... while other chipsets will emulate the misconfiguration, and fail to report any slave IRQs ...
distantvoices
Member
Member
Posts: 1600
Joined: Wed Oct 18, 2006 11:59 am
Location: Vienna/Austria
Contact:

Re:Keyboard interrupt

Post by distantvoices »

Aha, that's it. This "sk" becomes an "sch" in swedish sometimes. I've just written as I 've remembered the words. Well, and as in german you write as you speak (except of some cases), they came out this way. *gg*
.
... the osdever formerly known as beyond infinity ...
BlueillusionOS iso image
User avatar
bubach
Member
Member
Posts: 1223
Joined: Sat Oct 23, 2004 11:00 pm
Location: Sweden
Contact:

Re:Keyboard interrupt

Post by bubach »

ok... :-)
"Simplicity is the ultimate sophistication."
http://bos.asmhackers.net/ - GitHub
ich_will

Re:Keyboard interrupt

Post by ich_will »

I send an EOI at the end of the function keyboard_handler:

Code: Select all

void keyboard_handler()
{
  putint(inportb(0x60));   //retrieve scan code
  putc(' ');
  send_eoi_master();
}

void send_eoi_master()
{
  outportb(MASTER_PIC + 1, EOI); // the mistake, it must be send to MASTER_PIC
}
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Keyboard interrupt

Post by Pype.Clicker »

hmm ... what does that "the mistake ..." comment exactly mean ?
did you manage to receive interrupts when using MASTERPIC instead of MASTERPIC+1 or does it just continue bugging you ?
Post Reply