xilinx - Windows CE: Sharing memory between OAL and kernel driver -
is there way share memory between oal , kernel driver? between oal , kernel there nkglobal structure can used share memory. similar approach share memory. using windows embedded compact 2013 on xilinx board.
thus far, in oal layer did virttophys allocated memory physical address. in kernel driver tried virtualalloccopyex dont know pass in paddr.
lpvoid virtualalloccopyex ( handle hsrcproc, handle hdstproc, lpvoid paddr, dword cbsize, dword dwprotect );
if driver running in kernel mode it's sharing same address space of oal, can pass pointers directly. can allocate buffer in driver or in oal , share value using ioctl implemented in oemiocontrol in oal (if bsp uses common production quality layer may check how other ioctls implemented, need add record in table of structs , implement function manage specific ioctl). both components can access memory using pointer.
Comments
Post a Comment