Hi,
In the cacheflush01.c, it re-defines the __NR_cacheflush to __NR_Linux + 197.
But the operation is not alway correct.
If _MIPS_SIM is _MIPS_SIM_ABI32, Linux will use o32 style syscalls are in the
range from 4000 to 4999.
The __NR_cacheflush is __NR_Linux + 147.
Patch attached.
Signed-off-by: Feng Gao <[email protected]>
BR,
Feng Gao
From 8ccf7eff9035da13088eef50fb773af100b53f77 Mon Sep 17 00:00:00 2001
From: Feng Gao <[email protected]>
Date: Fri, 17 Sep 2010 09:47:32 +0800
Subject: [PATCH] Modified the __NR_cacheflush in the cacheflush01.c
In the cacheflush01.c, it re-defines the __NR_cacheflush to __NR_Linux + 197.
But the operation is not alway correct. It Should be the value in the unistd.h.
Signed-off-by: Feng Gao <[email protected]>
---
.../kernel/syscalls/cacheflush/cacheflush01.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/testcases/kernel/syscalls/cacheflush/cacheflush01.c b/testcases/kernel/syscalls/cacheflush/cacheflush01.c
index d0a4b1f..bb20064 100644
--- a/testcases/kernel/syscalls/cacheflush/cacheflush01.c
+++ b/testcases/kernel/syscalls/cacheflush/cacheflush01.c
@@ -66,7 +66,9 @@
* MIPS architecture -- regardless, it's a good negative test.. */
#if defined __mips__
#include <asm/cachectl.h>
+#ifndef __NR_cacheflush
#define __NR_cacheflush (__NR_Linux + 197)
+#endif
#else
/* Fake linux_syscall_numbers.h */
#define __NR_cacheflush 0
--
1.5.6.3
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list