From: Robert W. <ro...@us...> - 2004-04-15 20:23:54
|
Update of /cvsroot/ltp/ltp/testcases/kernel/mem/hugetlb/hugeshmat In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12912 Modified Files: hugeshmat01.c hugeshmat02.c Log Message: Made the tests 64bot friendly. Index: hugeshmat01.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/mem/hugetlb/hugeshmat/hugeshmat01.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** hugeshmat01.c 15 Apr 2004 18:22:26 -0000 1.1 --- hugeshmat01.c 15 Apr 2004 20:23:38 -0000 1.2 *************** *** 66,70 **** --- 66,74 ---- #define CASE1 20 /* memory location. */ + #if __WORDSIZE==64 + #define UNALIGNED 0x10000000eee + #else #define UNALIGNED 0x90000eee + #endif int shm_id_1 = -1; Index: hugeshmat02.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/mem/hugetlb/hugeshmat/hugeshmat02.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** hugeshmat02.c 15 Apr 2004 18:22:26 -0000 1.1 --- hugeshmat02.c 15 Apr 2004 20:23:39 -0000 1.2 *************** *** 70,74 **** --- 70,79 ---- void *addr; /* for result of shmat-call */ + #if __WORDSIZE==64 + #define NADDR 0x10000000eef /* a 64bit non alligned address value */ + #else #define NADDR 0x90000eef /* a non alligned address value */ + #endif + struct test_case_t { int *shmid; |