[英]RTOS: windows ce : Real mode and protected mode memory accessibility overhead
I have a control loop between hardware and software using RTOS: windows ce. 我在使用RTOS的硬件和软件之间有一个控制循环:Windows ce。
I read data in from a device through Real mode. 我通过实模式从设备读取数据。 I process the data in protected mode, due to limited memory in Real mode.
由于实模式下内存有限,我在保护模式下处理数据。 I then switch back to real mode to set another device based on results.
然后,我切换回实模式以根据结果设置另一台设备。
There is a lot of overhead in this and it slows things down. 这有很多开销,这会使事情变慢。 Is there a way to access the same memory on the heap?
有没有办法访问堆上的相同内存? Is there a means of making this efficient so the overhead is at a minimum?
有没有办法使这种效率高,从而使开销最小化?
thanks 谢谢
Use the VirtualCopy
API to map physical addresses into a process's virtual address space. 使用
VirtualCopy
API将物理地址映射到进程的虚拟地址空间。 There should be no need to drop down to real mode. 无需下降到实模式。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.