I want to wrote a SSP driver.Because both the kbd driver
and the battery driver would call it for transfer by SSP.
So I build it in drvlib.lib and link to kbd and batt driver.
Of cause,to prevent access conflict,I use MUTEX in SSP driver.
All works well.
But When I resume system from suspend,the system halting....
I found that when system resume,If system call some register
such as SSP_REGS in SSP driver and the exception occur.The register
(SSP_REGS)is defined and intialized in SSP driver.
When system boot,the SSP intilize and memory alloc function
would be called twice in kbd and batt driver.there is no exception
occur.
(I called the SSP iniilize and memory alloc function in PowerHandle
function in kbd and batt driver.)
It seems that it`s a memory access violation......
So,
How can I do with PowerHandle function in kbd and batt driver?
Thank you.