diff options
author | Chuang Dong <Chuang.Dong@windriver.com> | 2015-06-30 17:02:45 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-02 23:02:15 +0100 |
commit | f9a140441ab27c6e90d108ced76cff2dc70eedf2 (patch) | |
tree | 8513e34d844ffb2b390ae6ea11c644b2ba16eb21 /scripts/relocate_sdk.py | |
parent | e77fda5fb6cb0a35308e4620ca4602715a471fbe (diff) | |
download | openembedded-core-f9a140441ab27c6e90d108ced76cff2dc70eedf2.tar.gz openembedded-core-f9a140441ab27c6e90d108ced76cff2dc70eedf2.tar.bz2 openembedded-core-f9a140441ab27c6e90d108ced76cff2dc70eedf2.zip |
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: Chuang Dong <Chuang.Dong@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/relocate_sdk.py')
0 files changed, 0 insertions, 0 deletions