Disabling interrupts in Windows



I am executing a piece of code within a callback function for a USB
driver which I want to protect from getting interrupted on a Pentium 4
Hyperthreaded PC. I want to disable all other interrupts before this
piece of code and then enable the interrupts when I am done. I used the
assembly cli/sti for disabling the interrupts but this causes the PC to
freeze when I run the USB driver with HYPERTHREADING enabled. With HT
disabled the code runs fine.. So, I tried raising the Irql level to
HIGH_LEVEL using the KeRaiseIrql function and then restoring the Irql
to the old level using KeLowerIrql but it seems that some tasks DO
interrupt my function. Is there any other way by which I can disable
all other interrupts before my code??
OS is WinXp/Win2000.
- Thanks!!

.



Relevant Pages

  • Re: [patch] Real-Time Preemption, -RT-2.6.13-rc6-V0.7.53-11
    ... Why does the USB hcd.c code do this in the first place? ... Disabling ... Interrupts are disabled during usb_hcd_giveback_urb because that's how it ... It's not done for serialization -- there's ...
    (Linux-Kernel)
  • Re: sony vaio pcg-gr390
    ... PCI-Only Interrupts: none ... Location Bus Device Pin Link IRQs ... penalty: 1050 ... isa_probe_children: disabling PnP devices ...
    (freebsd-current)
  • Re: Using ISP1362 USB Controller on Lubbock Based Board (Intel DBPXA250) with Windows CE
    ... I created a new SYSINTR for USB device and implemented the code for USB ... Interrupt on OEMInterrupts routines. ... The driver is working for USB Hub, ... and Interrupts to GPIO23 and GPIO25. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: [RFC/PATCH] Kdump: Disabling PCI interrupts in capture kernel
    ... I know very little about consoles and their working. ... >> console driver needed interrupts to be enabled at the controller. ... looking at disabling the DMA from the devices. ... interrupt disable bit in PCI-PCI bridge is optional and if implemented, ...
    (Linux-Kernel)
  • Re: [RFC] mmiotrace full patch, preview 1
    ... the "first" probe gets selected and executed. ... kmmio_handler, where-ever it was triggered, executes with interrupts ... enable single-stepping. ... or does disabling interrupts guarantee that? ...
    (Linux-Kernel)

Quantcast