fix the New Feature#891

used the APE_PHY not the APE_TEST
This commit is contained in:
lishuang.xie 2023-08-03 15:13:45 +08:00
parent a9d77a5d60
commit 6f059f38a4

View File

@ -589,7 +589,7 @@ int32_t osp_get_cfg_file(char* name, uint64_t *paddr, uint32_t *psize)
if (0 == memcmp(head->name, name, strlen(name))) if (0 == memcmp(head->name, name, strlen(name)))
{ {
/* 物理层需要物理地址,而还是虚拟地址 */ /* 物理层需要物理地址,而还是虚拟地址 */
osp_virt_to_phy(APE_TEXT, head->vir_addr, paddr); osp_virt_to_phy(APE_PHY, head->vir_addr, paddr);
//*paddr = head->vir_addr; //*paddr = head->vir_addr;
*psize = head->len; *psize = head->len;
return OSP_OK; return OSP_OK;