B8 BSOD caused by KeDelayExecutionThread

Dear all
My driver needs to check some registers value, so I will call KeDelayExecutionThread( KernelMode, TRUE, &delay ); to sleep seconds and yield CPU. But there is interrup in my driver, so sometimes the KeDelayExecutionThread will be called in interrupt’s DPC level.
But it will cause B8 blue screen.

So does anyone have ways to wait several seconds and don’t yield CPU?

thank you very much

Denny

KeStallExecutionProcessor
But you cannot ‘sleep’ and you cannot stall for ‘seconds’.

Mark Roddy

On Mon, Nov 15, 2010 at 9:20 AM, wrote:
> Dear all
> ? ?My driver needs to check some registers value, so I will call KeDelayExecutionThread( KernelMode, TRUE, &delay ); to sleep seconds and yield CPU. ?But there is interrup in my driver, so sometimes the KeDelayExecutionThread will be called in interrupt’s DPC level.
> ?But it will cause B8 blue screen.
>
> So does anyone have ways to wait several seconds and don’t yield CPU?
>
> thank you very much
>
>
> Denny
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
>

If you are at dispatch level and need to wait more than a few micro seconds, schedule a timer and return (don’t wait on the timer)

d

dent from a phpne with no keynoard

-----Original Message-----
From: xxxxx@gmail.com
Sent: November 15, 2010 6:21 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] B8 BSOD caused by KeDelayExecutionThread

Dear all
My driver needs to check some registers value, so I will call KeDelayExecutionThread( KernelMode, TRUE, &delay ); to sleep seconds and yield CPU. But there is interrup in my driver, so sometimes the KeDelayExecutionThread will be called in interrupt’s DPC level.
But it will cause B8 blue screen.

So does anyone have ways to wait several seconds and don’t yield CPU?

thank you very much

Denny


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Thank you very much.