From: Cyril H. <su...@li...> - 2012-02-23 16:38:29
|
The branch, master, has been updated via 54a90b4ff7b63731c4cb3a876265e13a2363974d (commit) from 7a4f30b4c691e0ff229b9e2700b34fc56f125fb4 (commit) - Log ----------------------------------------------------------------- commit 54a90b4ff7b63731c4cb3a876265e13a2363974d Author: Shang Yanfeng <Yan...@wi...> Date: Tue Dec 27 18:02:29 2011 +0800 hugeshmat01 isn't adapt to mips with 64bit ELF Because userspace memory in mips with 64bit ELF is lower than 2^40, so shmat failed. signed-off-by: YanFeng.Shang <Yan...@wi...> ----------------------------------------------------------------------- Summary of changes: .../kernel/mem/hugetlb/hugeshmat/hugeshmat01.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/testcases/kernel/mem/hugetlb/hugeshmat/hugeshmat01.c b/testcases/kernel/mem/hugetlb/hugeshmat/hugeshmat01.c index 6f270ce..67bd4b0 100644 --- a/testcases/kernel/mem/hugetlb/hugeshmat/hugeshmat01.c +++ b/testcases/kernel/mem/hugetlb/hugeshmat/hugeshmat01.c @@ -67,7 +67,11 @@ unsigned long huge_pages_shm_to_be_allocated; #define CASE1 20 /* memory location. */ #if __WORDSIZE==64 +#if defined(__mips__) +#define UNALIGNED 0x1000000eee +#else #define UNALIGNED 0x10000000eee +#endif #else #define UNALIGNED 0x60000eee #endif @@ -279,4 +283,4 @@ cleanup(void) */ TEST_CLEANUP; -} \ No newline at end of file +} hooks/post-receive -- ltp |