stack problem

Hi,
If my stack is messed at the start of a driver
reinitialization. where should I look for an error?
I’m using IoRegisterBootDriverReinitialization.

When I enter the reinitialization routine, i notice
that the driverobject and a local variable have the
same memory address. I looked at my adddevice and
driverentry functions (the only two functions called
by my driver at initialization and they seem fine.

I initially ignored the stack discrepency, thinking it
was an optimization, however due to subsequent page
fault errors, the only place that looked as having a
problem was this.

Rajeev


Want to sell your car? advertise on Yahoo Autos Classifieds. It’s Free!!
visit http://in.autos.yahoo.com

turn off optimizations when building your device driver and see if that
fixes the issue.

-p

-----Original Message-----
From: Rajeev Rao [mailto:xxxxx@yahoo.co.in]
Sent: Thursday, June 27, 2002 1:37 PM
To: NT Developers Interest List
Subject: [ntdev] stack problem

Hi,
If my stack is messed at the start of a driver reinitialization. where
should I look for an error? I’m using
IoRegisterBootDriverReinitialization.

When I enter the reinitialization routine, i notice
that the driverobject and a local variable have the
same memory address. I looked at my adddevice and
driverentry functions (the only two functions called
by my driver at initialization and they seem fine.

I initially ignored the stack discrepency, thinking it
was an optimization, however due to subsequent page
fault errors, the only place that looked as having a
problem was this.

Rajeev


Want to sell your car? advertise on Yahoo Autos Classifieds. It’s Free!!
visit http://in.autos.yahoo.com


You are currently subscribed to ntdev as: xxxxx@microsoft.com To
unsubscribe send a blank email to %%email.unsub%%