Because userspace memory in mips with 64bit ELF is lower than 2^40,
so shmat failed.

signed-off-by: YanFeng.Shang  <[email protected]>
---
 .../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
+}
-- 
1.6.3.1


------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to