Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc/sys The nop instruction on or1k is l.nop
details: https://anonhg.NetBSD.org/src/rev/7f7d33001c36
branches: trunk
changeset: 331980:7f7d33001c36
user: matt <matt%NetBSD.org@localhost>
date: Wed Sep 03 19:24:12 2014 +0000
description:
The nop instruction on or1k is l.nop
diffstat:
tests/lib/libc/sys/t_getrusage.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 0777e944ee61 -r 7f7d33001c36 tests/lib/libc/sys/t_getrusage.c
--- a/tests/lib/libc/sys/t_getrusage.c Wed Sep 03 19:22:53 2014 +0000
+++ b/tests/lib/libc/sys/t_getrusage.c Wed Sep 03 19:24:12 2014 +0000
@@ -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 @@
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--;
}
}
Home |
Main Index |
Thread Index |
Old Index