Skip to content

Commit ece38b3

Browse files
author
Artem Belov
committed
Wrap getpagesize function
1 parent 987b080 commit ece38b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vppinfra/pmalloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ pmalloc_map_pages (clib_pmalloc_main_t * pm, clib_pmalloc_arena_t * a,
341341
for (int i = 0; i < n_pages; i++)
342342
{
343343
unsigned char flag;
344-
mincore(va + i * getpagesize(), 1, &flag);
344+
mincore(va + i * clib_mem_get_page_size(), 1, &flag);
345345
// flag is 1 if the page was successfully allocated and in memory
346346
if (!flag)
347347
{

0 commit comments

Comments
 (0)