hello all

We have a custom built monolithic USB Host controller driver on WINCE
5.0.
When we connect a storage class device the mass-storage class
driver gets loaded and runs it's initializations.
In this process when the partition driver is loaded we happen to get a
buffer pointer for a read request on bulk. When we write to this buffer
in the HCD we get a
data abort exception.

We found that
1. the pointer is not NULL
2. MapCallerPtr is called before we get it in the HCD.

Is there any pre-processing that we need to do before we access any
such pointer.
I have already tried LockPages.

please advise.

Shreepad

Re: Problem accessing a buffer pointer by Remi

Remi
Mon Nov 27 03:49:30 CST 2006

Hi,

If you are using the mapped pointer in a thread, you should also call
SetProcPermissions in this thread before using the pointer.

HTH
Remi



Re: Problem accessing a buffer pointer by shreepad

shreepad
Mon Nov 27 06:21:23 CST 2006


Remi de Gravelaine wrote:
> Hi,
>
> If you are using the mapped pointer in a thread, you should also call
> SetProcPermissions in this thread before using the pointer.
>
> HTH
> Remi

thanks Remi it worked !

regards
Shreepad