Module Name:    src
Committed By:   matt
Date:           Wed Sep  3 19:24:12 UTC 2014

Modified Files:
        src/tests/lib/libc/sys: t_getrusage.c

Log Message:
The nop instruction on or1k is l.nop


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libc/sys/t_getrusage.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/lib/libc/sys/t_getrusage.c
diff -u src/tests/lib/libc/sys/t_getrusage.c:1.2 src/tests/lib/libc/sys/t_getrusage.c:1.3
--- src/tests/lib/libc/sys/t_getrusage.c:1.2	Mon Aug 22 00:33:16 2011
+++ src/tests/lib/libc/sys/t_getrusage.c	Wed Sep  3 19:24:12 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: t_getrusage.c,v 1.2 2011/08/22 00:33:16 dholland Exp $ */
+/* $NetBSD: t_getrusage.c,v 1.3 2014/09/03 19:24:12 matt Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_getrusage.c,v 1.2 2011/08/22 00:33:16 dholland Exp $");
+__RCSID("$NetBSD: t_getrusage.c,v 1.3 2014/09/03 19:24:12 matt Exp $");
 
 #include <sys/resource.h>
 #include <sys/time.h>
@@ -58,7 +58,11 @@ work(void)
 	size_t n = UINT16_MAX * 10;
 
 	while (n > 0) {
+#ifdef __or1k__
+		 asm volatile("l.nop");	/* Do something. */
+#else
 		 asm volatile("nop");	/* Do something. */
+#endif
 		 n--;
 	}
 }

Reply via email to