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:08:38 +0100 |
commit | 81ead6af3c3efb29ec738450adcb69c38f5d84ca (patch) | |
tree | 573d773f09b252161f262f9de887fd3d0bc46cae /meta/recipes-extended/ltp/ltp_20150420.bb | |
parent | 00020fada368c374925eba4cbef842ff0bf0e856 (diff) | |
download | poky-81ead6af3c3efb29ec738450adcb69c38f5d84ca.tar.gz |
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));
(From OE-Core rev: f9a140441ab27c6e90d108ced76cff2dc70eedf2)
Signed-off-by: Chuang Dong <Chuang.Dong@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/ltp/ltp_20150420.bb')
-rw-r--r-- | meta/recipes-extended/ltp/ltp_20150420.bb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-extended/ltp/ltp_20150420.bb b/meta/recipes-extended/ltp/ltp_20150420.bb index b4fc223a14..2554f52a96 100644 --- a/meta/recipes-extended/ltp/ltp_20150420.bb +++ b/meta/recipes-extended/ltp/ltp_20150420.bb | |||
@@ -28,6 +28,7 @@ SRC_URI = "git://github.com/linux-test-project/ltp.git \ | |||
28 | file://make-setregid02-work.patch \ | 28 | file://make-setregid02-work.patch \ |
29 | file://add-knob-for-numa.patch \ | 29 | file://add-knob-for-numa.patch \ |
30 | file://add-knob-for-tirpc.patch \ | 30 | file://add-knob-for-tirpc.patch \ |
31 | file://0001-ltp-vma03-fix-the-alginment-of-page-size.patch \ | ||
31 | " | 32 | " |
32 | 33 | ||
33 | S = "${WORKDIR}/git" | 34 | S = "${WORKDIR}/git" |