linux-assembly.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Frederic Marmond <fmarmond@eprocess.fr>
To: Rudolf Marek <MAREKR2@cs.felk.cvut.cz>
Cc: Mateusz Srebrny <ms189442@zodiac.mimuw.edu.pl>,
	linux-assembly@vger.kernel.org
Subject: Re: interupts...
Date: Mon, 23 Sep 2002 15:46:54 +0200	[thread overview]
Message-ID: <3D8F1B4E.6050808@eprocess.fr> (raw)
In-Reply-To: Pine.VMS.3.91-2(vms).1020923151918.31945B-100000@cs.felk.cvut.cz

Rudolf Marek wrote:

>On Mon, 23 Sep 2002, Mateusz Srebrny wrote:
>
>  
>
>>Date: Mon, 23 Sep 2002 15:04:42 +0200 (CEST)
>>From: Mateusz Srebrny <ms189442@zodiac.mimuw.edu.pl>
>>To: linux-assembly@vger.kernel.org
>>Subject: interupts...
>>
>>Hi!
>>
>>This question is out of concern of this group (I think).
>>But...
>>
>>Does proccessor (somehow) know if an interrupt it gets was hard- or soft- 
>>ware generated? I mean if hard disk finishes for example his asynchronous 
>>IO operation it generates the disk interrupt. But if I want something from 
>>the disk I do it all the same... 
>>    
>>
>
>If it is software generated it is in the procesor itself (int instruction)
>if Hardware, there is I think one PIN called INTA on processor.
>
>Through this "wire" is ALL  hardware requesting interrupt.
>
>
>  Hardware -> IRQ lines 0-15  -> PIC (Programemble interrupt controller) 
>-> "INTA" Pin of procesor.  
>  
>
right, you have to reset this line at the end of the interrupt handler 
(by the good 8259 port, something like out 20h,20h for the first, if i 
remember well)

>Hope someone will correct me if I'm not right but this is basic idea.
>  
>
>>Is there the same int-handler for hardware and for software, but the 
>>execution differs by means of some parameters? Or there are two separate 
>>interrupt accidentally called by the same number?
>>
>>    
>>
>
>No HW and Software can be mixed togehter.
>
>INT 5 -> bound exeption has same handler as for Printscreen for 
>example.(Under DOS)
>
>Regards
>		Rudolf
>  
>
hum, we can make a
pushf
call 0:5*4
it will call the int 5.
I think that hw and sw may be mixed in an int handler (i find it ugly, 
but...)

You can also program the 8259 to map IRQ to other interrupts than those 
by default.
When bios take the control, in boot stage, it maps
irq 0-7 to ints 8-f and irq 8-f to ints 70-77.
But you can change that , and make irq 0-7 points to 90-97 and irq 8-f 
to interrupts 98-9f if you want to!


Fred

> 
>
>
>-
>To unsubscribe from this list: send the line "unsubscribe linux-assembly" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
>  
>




       reply	other threads:[~2002-09-23 13:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.VMS.3.91-2(vms).1020923151918.31945B-100000@cs.felk.cvut.cz>
2002-09-23 13:46 ` Frederic Marmond [this message]
2002-09-23 13:50 ` interupts Rudolf Marek
2002-09-23 13:04 interupts Mateusz Srebrny
2002-09-23 13:26 ` interupts Rudolf Marek
2002-09-23 13:37 ` interupts Frederic Marmond

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D8F1B4E.6050808@eprocess.fr \
    --to=fmarmond@eprocess.fr \
    --cc=MAREKR2@cs.felk.cvut.cz \
    --cc=linux-assembly@vger.kernel.org \
    --cc=ms189442@zodiac.mimuw.edu.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).