开发者

Windows bug check callback not called on 64 bit systems

开发者 https://www.devze.com 2023-03-12 00:17 出处:网络
We have ported our driver successfully to 64 bit systems a while ago. But one thing is missing, which is not very important but it was a very handy debugging feature.

We have ported our driver successfully to 64 bit systems a while ago.

But one thing is missing, which is not very important but it was a very handy debugging feature.

The callbacks registered with KeRegisterBugCheckReasonCallback is never called. The function returns a TRUE for success, but my callback is never called. I also tried different values for the parameter reason with no success. A try with the older KeRegisterBugCheckCallback开发者_运维技巧 also failed.

What I am doing wrong?

Did I missed something in the documentation?


I found the problem.

Windows only calls the callbacks if corresponding KBUGCHECK_CALLBACK_RECORD is aligned to an 8 byte address.

For some reason mine where aligned to 4 byte addresses.

It is a bummer that KeRegisterBugCheckReasonCallback does not check this.

0

精彩评论

暂无评论...
验证码 换一张
取 消