此帖出自嵌入式系统论坛
最新回复
hMap=CreateFileMapping(INVALID_HANDLE_VALUE,NULL,PAGE_READWRITE,0,MEM_PHY_SIZE,NULL);
g_MemVirtBase = (DWORD)MapViewOfFile(hMap,FILE_MAP_WRITE,0,0,0);
if (! VirtualCopy( (PVOID)(g_MemVirtBase),
(PVOID)(MESPAtoVA(MEM_PHY_BASEADDR, FALSE)),
0x2000000, //前32MB
PAGE_READWRITE | PAGE_NOCACHE))
{
VirtualFree((PVOID)g_BlockMemVirtBase, 0, MEM_RELEASE);
return errorFlag;
}
if (! VirtualCopy( (PVOID)(g_MemVirtBase+0x2000000),
(PVOID)(MESPAtoVA((MEM_PHY_BASEADDR+0x2000000), FALSE)),
(MEM_PHY_SIZE-0x2000000),//32MB~64MB部分 PAGE_READWRITE | PAGE_NOCACHE))
{
VirtualFree((PVOID)g_BlockMemVirtBase, 0, MEM_RELEASE);
return errorFlag;
}
详情
回复
发表于 2009-7-6 16:24
| ||
|
||
| |
|
|
| |
|
|
此帖出自嵌入式系统论坛
| ||
|
||
此帖出自嵌入式系统论坛
| ||
|
||
此帖出自嵌入式系统论坛
| ||
|
||
此帖出自嵌入式系统论坛
| ||
|
||
| |
|
|
此帖出自嵌入式系统论坛
| ||
|
||
此帖出自嵌入式系统论坛
| ||
|
||
| |
|
|
此帖出自嵌入式系统论坛
| ||
|
||
浏览过的版块 |
EEWorld Datasheet 技术支持