Re: how can i disble irq15 through C/assembly programming.
- From: "anton bassov" <soviet_bloke@xxxxxxxxxxx>
- Date: 25 Jan 2007 04:01:19 -0800
Arkady,
I never see assembly code that run on different CPU type :)
Don't forget that, apart from CPU, there is also motherboard......
This is why we have PIC HAL and APIC HAL. In addition to that, on newer
motherboards there is also a thing known as MSI, so that interrupts may
be vectored directly...
Furhermore, don't forget that, due to hyperthreading and multi-core
technologies, any computer released in the last 2 years is SMP machine,
from the system's perspective, so that CLI, executed by CPU X, does not
disable interrupts on CPU Y.....
To summarize, these days relying upon assembly and/or x86-specific
features is not as easy as it used to be few years ago.....
Anton Bassov
..
On Jan 25, 9:17 am, "Arkady Frenkel" <arka...@xxxxxxxxxxxxxxxx> wrote:
I never see assembly code that run on different CPU type :)
Arkady
"anton bassov" <soviet_bl...@xxxxxxxxxxx> wrote in messagenews:1169677078.372451.46480@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Arkady,
Look at cli / sti - assembly opcodes
These opcodes enable and disable interrupts on a given CPU on
"all-or-none" basis, and this is not what the OP wants. Furthermore,
they affect only the given CPU, and the OP wants to disable IRQ for all
CPUs. Therefore, tricks with IF flag is of no help here - instead, you
have to do it via IOAPIC (on APIC HAL).
However, as Don properly pointed out, doing so is unwise, at least in
commercial-grade product that is meant to run of different computers
and HALs...
Anton Bassov
On Jan 24, 8:09 am, "Arkady Frenkel" <arka...@xxxxxxxxxxxxxxxx> wrote:
Look at cli / sti - assembly opcodes
Arkady
"shoeb" <shoeb....@xxxxxxxxxxxxxxx> wrote in
messagenews:uUmm%23F4PHHA.4296@xxxxxxxxxxxxxxxxxxxxxxx
how can i disble irq15 through C/assembly programming.
thanks- Hide quoted text -- Show quoted text -- Hide quoted text -- Show quoted text -
.
- Follow-Ups:
- Re: how can i disble irq15 through C/assembly programming.
- From: Arkady Frenkel
- Re: how can i disble irq15 through C/assembly programming.
- References:
- how can i disble irq15 through C/assembly programming.
- From: shoeb
- Re: how can i disble irq15 through C/assembly programming.
- From: Arkady Frenkel
- Re: how can i disble irq15 through C/assembly programming.
- From: anton bassov
- Re: how can i disble irq15 through C/assembly programming.
- From: Arkady Frenkel
- how can i disble irq15 through C/assembly programming.
- Prev by Date: Re: how to disable secondary ide controller
- Next by Date: Re: Problem With DeviceIoControl IOCTL_STORAGE_MCN_CONTROL
- Previous by thread: Re: how can i disble irq15 through C/assembly programming.
- Next by thread: Re: how can i disble irq15 through C/assembly programming.
- Index(es):
Relevant Pages
|