Skip to content
Commit f9a14044 authored by Chuang Dong's avatar Chuang Dong Committed by Richard Purdie
Browse files

ltp: vma03 fix the alginment of page size



the offset the param of mmap2() doesn't align the page size, but,
this param allow must be a multiple of the page size as returned
by sysconf(_SC_PAGE_SIZE).meanwhile offset * 4096 must be a
multiple of the system page size, so modify the input param of offset
pgoff = (ULONG_MAX - 1)&(~((pgsz-1)>>12));

Signed-off-by: default avatarChuang Dong <Chuang.Dong@windriver.com>
Signed-off-by: default avatarRoss Burton <ross.burton@intel.com>
parent e77fda5f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment