|
From: Joseph G. <gal...@va...> - 2002-05-31 21:28:00
|
Hello everyone, I've been working on an implementation of ZwCreateToken(), and I'm having some trouble that I'm not sure how to tackle at this point. Attached is my version of token.c, as well as a program called tokentest.c to exercise it. The system crashes when ZwCreateToken() calls ObCreateObject(): Bug detected code: 0x1D Divide Error Exception: 0(fff8) I put a DbgPrint() in ObCreateObject before the assert_irql() call and I don't see the output from it -- so it seems to be crashing making the call, which seems weird. I can't figure out what is going on -- it seems like a calling convention problem or something. Can anyone see what I've messed up here? Does anyone have any hints for how to get started setting up a debugger here? I'm using the bochs emulator to run things, and haven't got a clue on where to look for information about setting up a debugger. Thanks, Joseph |