Enable the building of the library on s390 and specify the behavior of
the icache-hygiene test. The testsuite runs relatively clean. Only one
major issue and I've reported it upstream.
Signed-off-by: Nishanth Aravamudan <[EMAIL PROTECTED]>
---
Note, even with the icache-hygiene update, I'm seeing periodic failures
with mmap() 1 giving ENOMEM. I'm not sure what's going on there yet.
And, iirc, task-size-overrun takes a *long* time to finish.
diff --git a/Makefile b/Makefile
index f1f83fa..59fdb47 100644
--- a/Makefile
+++ b/Makefile
@@ -63,6 +63,13 @@ CC64 = gcc -m64
LIB64 = lib64
CFLAGS += -DNO_ELFLINK
else
+ifeq ($(ARCH),s390x)
+CC64 = gcc -m64
+CC32 = gcc -m31
+LIB64 = lib64
+LIB32 = lib
+CFLAGS += -DNO_ELFLINK
+else
$(error "Unrecognized architecture ($(ARCH))")
endif
endif
@@ -70,6 +77,7 @@ endif
endif
endif
endif
+endif
ifdef CC32
OBJDIRS += obj32
diff --git a/tests/icache-hygiene.c b/tests/icache-hygiene.c
index 990c0ad..6073b57 100644
--- a/tests/icache-hygiene.c
+++ b/tests/icache-hygiene.c
@@ -84,10 +84,10 @@ static void *sig_expected;
static void sig_handler(int signum, siginfo_t *si, void *uc)
{
-#if defined(__powerpc__) || defined(__powerpc64__) || defined(__ia64__)
- /* On powerpc and ia64, 0 bytes are an illegal instruction, so,
- * if the icache is cleared properly, we SIGILL as soon as we
- * jump into the cleared page */
+#if defined(__powerpc__) || defined(__powerpc64__) || defined(__ia64__) ||
defined(__s390__) || defined(__s390x__)
+ /* On powerpc and ia64 and s390, 0 bytes are an illegal
+ * instruction, so, if the icache is cleared properly, we SIGILL
+ * as soon as we jump into the cleared page */
if (signum == SIGILL) {
verbose_printf("SIGILL at %p (sig_expected=%p)\n", si->si_addr,
sig_expected);
--
Nishanth Aravamudan <[EMAIL PROTECTED]>
IBM Linux Technology Center
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Libhugetlbfs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel