diff mbox

[4/4] set 16kb incrediment for Aarch64

Message ID 1367846581-18599-5-git-send-email-riku.voipio@linaro.org
State Accepted
Headers show

Commit Message

Riku Voipio May 6, 2013, 1:23 p.m. UTC
From: Riku Voipio <riku.voipio@linaro.org>


Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
---
 testcases/kernel/mem/shmt/shmt09.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/testcases/kernel/mem/shmt/shmt09.c b/testcases/kernel/mem/shmt/shmt09.c
index 5e7e52e..8f8c3c7 100644
--- a/testcases/kernel/mem/shmt/shmt09.c
+++ b/testcases/kernel/mem/shmt/shmt09.c
@@ -61,7 +61,7 @@  int TST_TOTAL = 4;		/* Total number of test cases. */
 #define INCREMENT 		8388608	/* 8Mb */
 #elif defined (__mips__)  ||  defined (__hppa__) || defined (__sparc__)
 #define INCREMENT		262144	/* 256Kb */
-#elif defined __sh__ || defined (__arm__)
+#elif defined __sh__ || defined (__arm__) || defined(__aarch64__)
 #define INCREMENT 		16384	/* 16kb */
 #else
 #define INCREMENT 		SHMLBA
@@ -162,7 +162,7 @@  int main()
 	tst_resm(TPASS, "sbrk, shmat");
 
 /*--------------------------------------------------------*/
-#if defined (__ia64__) || defined(__mips__) || defined(__hppa__) || defined(__arm__)
+#if defined (__ia64__) || defined(__mips__) || defined(__hppa__) || defined(__arm__) || defined(__aarch64__)
 	while ((vp = sbrk(INCREMENT)) != (void *)-1) ;
 	if (errno != ENOMEM) {
 		tst_resm(TFAIL, "Error: sbrk failed, errno = %d\n", errno);