Newsgroups: comp.os.ms-windows.programmer.nt.kernel-mode
From: "kyleb" <kyl...@microsoft.com>
Date: 1997/10/31
Subject: Re: NDIS calls DPR without ISR during init
below -- please respond to newsgroup. Do not send mail. Stephan Wolf wrote in article <34575def.22208263@spock>... >In my NDIS4 Miniport, MiniportHandleInterrupt() is called by the NDIS the MiniportHandleInterrupt is called before you return from >Wrapper during execution of MiniportInitialize() without a preceding >call to MiniportISR(). MiniportInitialize or before you get back from the call to NdisMRegisterMiniport? >What I see in the stack trace is that MiniportHandleInterrupt() is >My Miniport does not have the optional MiniportDisableInterrupt() and TRUE? if so then your Enable/Disable won't be called (more on that below). Once you return from MiniportInitialize you will get a series of requests from the wrapper. these requests will be sent before your call to NdisMRegisterMiniport returns on <= NT4.0 (NT 5.0 will be very different). After each of these requests we queue a DPC to fire. This is to pickup any stray events that the miniport may have. Some expect some status to be set by their interrupt handler. The fact that the ndisMDpcTimer was the caller means this could be the result of these requests. >Has anyone ever seen this before? >The reason I am asking is that this violates the rules of NDIS >Maybe it's just because I don't have a MiniportDisableInterrupt(), say that your interrupt is shared. the you do NOT need the MiniportDisableInterrupt and MiniportEnableInterrupt. This is because you are expected to disable int's in your isr and enable them in your dpc. if you don't specifically say that you want an isr then ndis will skip the call. when the isr is triggered ndis will call the MiniportDisableInterrupt routine and queue the dpc for you. after you process the dpc it will call MiniportEnableInterrupt >Stephan Wolf <sw...@syskonnect.de> http://www.syskonnect.de You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||