- Fix IRQL restrictions.

svn path=/trunk/; revision=11303
This commit is contained in:
Filip Navara 2004-10-17 01:59:36 +00:00
parent 921ff5c94d
commit 33a12b714a

View file

@ -15,8 +15,6 @@
* validation to assist in the effort to get third-party binaries * validation to assist in the effort to get third-party binaries
* working. It is easiest to track bugs when things break quickly * working. It is easiest to track bugs when things break quickly
* and badly. * and badly.
* - Nearly this entire file is PAGED_CODE (with the exception of the
* MiniportTimerDpc() function)
*/ */
#include "ndissys.h" #include "ndissys.h"
@ -66,7 +64,7 @@ NdisCancelTimer(
* - call at IRQL <= DISPATCH_LEVEL * - call at IRQL <= DISPATCH_LEVEL
*/ */
{ {
PAGED_CODE(); ASSERT_IRQL(DISPATCH_LEVEL);
ASSERT(Timer); ASSERT(Timer);
*TimerCancelled = KeCancelTimer (&Timer->Timer); *TimerCancelled = KeCancelTimer (&Timer->Timer);
@ -88,7 +86,7 @@ NdisGetCurrentSystemTime (
* - call at IRQL <= DISPATCH_LEVEL * - call at IRQL <= DISPATCH_LEVEL
*/ */
{ {
PAGED_CODE(); ASSERT_IRQL(DISPATCH_LEVEL);
ASSERT(pSystemTime); ASSERT(pSystemTime);
KeQuerySystemTime (pSystemTime); KeQuerySystemTime (pSystemTime);
@ -141,7 +139,7 @@ NdisMCancelTimer(
* - call at IRQL <= DISPATCH_LEVEL * - call at IRQL <= DISPATCH_LEVEL
*/ */
{ {
PAGED_CODE(); ASSERT_IRQL(DISPATCH_LEVEL);
ASSERT(TimerCancelled); ASSERT(TimerCancelled);
ASSERT(Timer); ASSERT(Timer);
@ -198,12 +196,12 @@ NdisMSetPeriodicTimer(
* MillisecondsPeriod: period of the timer * MillisecondsPeriod: period of the timer
* NOTES: * NOTES:
* - Minimum predictible interval is ~10ms * - Minimum predictible interval is ~10ms
* - Must be called at IRQL <= DISPATCH_LEVEL) * - Must be called at IRQL <= DISPATCH_LEVEL
*/ */
{ {
LARGE_INTEGER Timeout; LARGE_INTEGER Timeout;
PAGED_CODE(); ASSERT_IRQL(DISPATCH_LEVEL);
ASSERT(Timer); ASSERT(Timer);
/* relative delays are negative, absolute are positive; resolution is 100ns */ /* relative delays are negative, absolute are positive; resolution is 100ns */
@ -228,12 +226,12 @@ NdisMSetTimer(
* MillisecondsToDelay: time to wait for the timer to expire * MillisecondsToDelay: time to wait for the timer to expire
* NOTES: * NOTES:
* - Minimum predictible interval is ~10ms * - Minimum predictible interval is ~10ms
* - Must be called at IRQL <= DISPATCH_LEVEL) * - Must be called at IRQL <= DISPATCH_LEVEL
*/ */
{ {
LARGE_INTEGER Timeout; LARGE_INTEGER Timeout;
PAGED_CODE(); ASSERT_IRQL(DISPATCH_LEVEL);
ASSERT(Timer); ASSERT(Timer);
/* relative delays are negative, absolute are positive; resolution is 100ns */ /* relative delays are negative, absolute are positive; resolution is 100ns */
@ -258,12 +256,12 @@ NdisSetTimer(
* MillisecondsToDelay: time to wait for the timer to expire * MillisecondsToDelay: time to wait for the timer to expire
* NOTES: * NOTES:
* - Minimum predictible interval is ~10ms * - Minimum predictible interval is ~10ms
* - Must be called at IRQL <= DISPATCH_LEVEL) * - Must be called at IRQL <= DISPATCH_LEVEL
*/ */
{ {
LARGE_INTEGER Timeout; LARGE_INTEGER Timeout;
PAGED_CODE(); ASSERT_IRQL(DISPATCH_LEVEL);
ASSERT(Timer); ASSERT(Timer);
/* relative delays are negative, absolute are positive; resolution is 100ns */ /* relative delays are negative, absolute are positive; resolution is 100ns */