aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2010-02-11 14:27:34 +0100
committerEric B Munson <ebmunson@us.ibm.com>2010-02-11 14:47:46 +0000
commitf2a4671431ec24fc71d6a38a005aebb3393ce041 (patch)
tree15a916216063f518ae4b08533b3802ddc3c6c60e /tests
parent290500081d1181b24e67715f5ca92974b6922962 (diff)
downloadlibhugetlbfs-f2a4671431ec24fc71d6a38a005aebb3393ce041.tar.gz
parent 48b4959e950ca54937e70152e28f27b8d1157e8b (2.7)
commit 02252c829111e6a68b465f8f1da74098c9e3491f Author: Jan Engelhardt <jengelh@medozas.de> Date: Tue Feb 9 12:42:57 2010 +0100 tests/icache-hygiene: allow compilation on SPARC Signed-off-by: Jan Engelhardt <jengelh@medozas.de> Signed-off-by: Eric B Munson <ebmunson@us.ibm.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/icache-hygiene.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/icache-hygiene.c b/tests/icache-hygiene.c
index 6132de0..399d511 100644
--- a/tests/icache-hygiene.c
+++ b/tests/icache-hygiene.c
@@ -84,7 +84,8 @@ static void *sig_expected;
static void sig_handler(int signum, siginfo_t *si, void *uc)
{
-#if defined(__powerpc__) || defined(__powerpc64__) || defined(__ia64__) || defined(__s390__) || defined(__s390x__)
+#if defined(__powerpc__) || defined(__powerpc64__) || defined(__ia64__) || \
+ defined(__s390__) || defined(__s390x__) || defined(__sparc__)
/* 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 */