[Geekos-devel] defs.h
Status: Pre-Alpha
Brought to you by:
daveho
From: Sergey L. <ioa...@ya...> - 2003-05-19 08:51:59
|
Hi Behrang, Although Dave's answer is absolutely correct, I wanna explain it in more details. CPU may be interrupted in 2 ways: programmatically or by the hardware. Every such case has the associated number, called 'interrupt number'. CPU then searches special table, called IDT (interrupt descriptor's table), and uses the interrupt number as an index to find the handler: a function to call to handle the interrupt. (there are different IDT formats for real and protected mode, but the concept remains the same). Programmatically, you issue an interrupt by instruction INT XX, where XX is an interrupt number (index in IDT). All interrupts from real hardware go to a chip called 'programmable interrupt controller', or PIC. PIC then sends an interrupt to a processor: so PIC is an 'interrupt router'. PIC has 8 'pins', or lines, callePOST /ym/ComPOST /ym/Compose?YY=46200 HTTP/1.1 Host: us.f136.mail.yahoo.com User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030516 Accept: text/xml,application/xml,application/xhtml xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate,compress;q=0.9 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Proxy-Connection: keep-alive Referer: http://us.f136.mail.yahoo.com/ym/Compose?YY=41130 Cookie: B=8ei6a5sv4l42e __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com |