引用: 引用 10 楼 ccyu 的回复:
怀疑还是Cache的问题,再检查一下端口寄存器所在地址空间是否启用了Cache
s2440IOP = (S3C2440A_IOPORT_REG *)OALPAtoVA(S3C2440A_BASE_REG_PA_IOPORT,
FALSE);
This function returns the cached or uncached virtual address for a specified physical address.
VOID* OALPAtoVA(
UINT32 pa,
BOOL cached
)
Parameters
pa
[in] Specified physical address.
cached
[in] 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.
Return Values
Returns the cached or uncached virtual address.
我现在已经是uncached了
我直接用uncached 地址访问试试。