mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 17:00:51 +08:00
[NDIS] Allow timer initialization at DISPATCH_LEVEL.
Spotted by Mortal Wombat.
This commit is contained in:
@@ -80,10 +80,10 @@ NdisInitializeTimer(
|
||||
* FunctionContext: context (param 2) to be passed to the timer function when it runs
|
||||
* NOTES:
|
||||
* - TimerFunction will be called at DISPATCH_LEVEL
|
||||
* - call at IRQL = PASSIVE_LEVEL
|
||||
* - Must be called at IRQL <= DISPATCH_LEVEL
|
||||
*/
|
||||
{
|
||||
PAGED_CODE();
|
||||
ASSERT_IRQL(DISPATCH_LEVEL);
|
||||
ASSERT(Timer);
|
||||
|
||||
KeInitializeTimer (&Timer->Timer);
|
||||
@@ -203,10 +203,10 @@ NdisMInitializeTimer(
|
||||
* FunctionContext: argument passed to TimerFunction when it is called
|
||||
* NOTES:
|
||||
* - TimerFunction is called at IRQL = DISPATCH_LEVEL
|
||||
* - call at IRQL = PASSIVE_LEVEL
|
||||
* - Must be called at IRQL <= DISPATCH_LEVEL
|
||||
*/
|
||||
{
|
||||
PAGED_CODE();
|
||||
ASSERT_IRQL(DISPATCH_LEVEL);
|
||||
ASSERT(Timer);
|
||||
|
||||
KeInitializeTimer (&Timer->Timer);
|
||||
|
||||
Reference in New Issue
Block a user