开发者

RTOS: windows ce : Real mode and protected mode memory accessibility overhead

开发者 https://www.devze.com 2023-04-07 06:56 出处:网络
I have a control loop between hardware and software using RTOS: windows ce. I read data in from a device through Real mode.

I have a control loop between hardware and software using 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 rea开发者_开发百科l 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. There should be no need to drop down to real mode.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号