四极管:WinCE Bootloader学习笔记之 OEMPlatformInit()函数

 

 

/*
    @func   BOOL | OEMPlatformInit | Initialize the Samsung SMD2416 platform hardware.
    @rdesc  TRUE = Success, FALSE = Failure.
    @comm
    @xref
*/该函数完成平台特定的初始化,包括实时时钟、Flash、存储器、网络适配器、以及一些其他外设的初始化。

 

 OALPAtoVA  用法

       该函数也是将要访问的物理地址映射成虚拟地址。共有三个类似函数:

OALPAtoUA:This function returns the uncached virtual address for a specified physical address.
VOID* OALPAtoUA(
UINT32 pa
);

OALPAtoCA:Returns the cached virtual address.
VOID* OALPAtoCA(
UINT32 pa
);

OALPAtoVA:Indicates whether the virtual address is cached. A value of TRUE indicates that it is a cached address. A value of FALSE indicates that it is uncached.
VOID* OALPAtoVA(
UINT32 pa,
BOOL cached
);

在OAL层, OALPAtoVA() 功能= VirtualAlloc() + VirtualCopy()功能;

 

 

 

 

 

转载请注明出处。作者:四极管。广西师范大学 电子工程学院大学生科技创新基地 邮箱: [email protected]

你可能感兴趣的:(四极管:WinCE Bootloader学习笔记之 OEMPlatformInit()函数)