[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v5 5/6] i8259: fix so that dropping IRQ level al
From: |
Avi Kivity |
Subject: |
Re: [Qemu-devel] [PATCH v5 5/6] i8259: fix so that dropping IRQ level always clears the interrupt request |
Date: |
Tue, 11 Sep 2012 15:57:51 +0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120828 Thunderbird/15.0 |
On 09/10/2012 04:09 PM, Maciej W. Rozycki wrote:
>
>> > No, this is about the PIC, not the CPU interrupt inputs.
>>
>> I see, the interrupt is still sent to the processor; but IRR reflects
>> that status of the input line, not a "pending interrupt" status.
>
> Not really, this is still a "pending interrupt" status.
>
> For level-triggered inputs the state of IRR bits do indeed follow the
> respective IRx inputs (taking the IMR into account). For edge-triggered
> inputs the relevant IRR bit is set by a leading edge on its corresponding
> IRx input and cleared when the interrupt is acknowledged (either with an
> INTA bus cycle or by a data read bus cycle issued to the PIC armed with an
> OCW3 that has had the POLL command bit set) OR with a trailing edge on IRx
> (again, all this takes the IMR into account). At this point another
> leading edge is required for the IRR bit to be set again, that is merely
> keeping the IRx input's level active won't trigger another interrupt.
Ok, thanks, that explains it for me.
--
error compiling committee.c: too many arguments to function
- [Qemu-devel] [PATCH v5 3/6] qemu-options.hx: mention retrace= VGA option, (continued)
- [Qemu-devel] [PATCH v5 3/6] qemu-options.hx: mention retrace= VGA option, Matthew Ogilvie, 2012/09/09
- [Qemu-devel] [PATCH v5 2/6] vl: fix -hdachs/-hda argument order parsing issues, Matthew Ogilvie, 2012/09/09
- [Qemu-devel] [PATCH v5 4/6] vga: add some optional CGA compatibility hacks, Matthew Ogilvie, 2012/09/09
- [Qemu-devel] [PATCH v5 6/6] i8259: refactor pic_set_irq level logic, Matthew Ogilvie, 2012/09/09
- [Qemu-devel] [PATCH v5 5/6] i8259: fix so that dropping IRQ level always clears the interrupt request, Matthew Ogilvie, 2012/09/09
- Re: [Qemu-devel] [PATCH v5 5/6] i8259: fix so that dropping IRQ level always clears the interrupt request, Matthew Ogilvie, 2012/09/11
- Re: [Qemu-devel] [PATCH v5 5/6] i8259: fix so that dropping IRQ level always clears the interrupt request, Jan Kiszka, 2012/09/11
- Re: [Qemu-devel] [PATCH v5 5/6] i8259: fix so that dropping IRQ level always clears the interrupt request, Avi Kivity, 2012/09/11