Skip to content

Commit c1ed7cc

Browse files
committed
添加 vdso readtime 更新逻辑
1 parent eef63cf commit c1ed7cc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

components/lwp/arch/common/vdso_kernel.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ static int rt_vdso_map_binary_pages(enum rt_vdso_binary_id binary_id,
264264
if (data_page_base == RT_NULL)
265265
{
266266
lwp->vdso_vbase = RT_NULL;
267-
return RT_ERROR;
267+
return -RT_ERROR;
268268
}
269269

270270
image_base = (uint8_t *)data_page_base + data_page_len;
@@ -276,7 +276,7 @@ static int rt_vdso_map_binary_pages(enum rt_vdso_binary_id binary_id,
276276
{
277277
lwp_unmap_user_phy(lwp, data_page_base);
278278
lwp->vdso_vbase = RT_NULL;
279-
return RT_ERROR;
279+
return -RT_ERROR;
280280
}
281281

282282
lwp->vdso_vbase = image_base;

0 commit comments

Comments
 (0)