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 PR port-ia64/51261



details:   https://anonhg.NetBSD.org/src/rev/379797c3f2c4
branches:  trunk
changeset: 817003:379797c3f2c4
user:      scole <scole%NetBSD.org@localhost>
date:      Fri Aug 05 15:01:39 2016 +0000

description:
PR port-ia64/51261

Make this compile for ia64

diffstat:

 tests/lib/libc/sys/t_getrusage.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r dad761530102 -r 379797c3f2c4 tests/lib/libc/sys/t_getrusage.c
--- a/tests/lib/libc/sys/t_getrusage.c  Fri Aug 05 14:32:36 2016 +0000
+++ b/tests/lib/libc/sys/t_getrusage.c  Fri Aug 05 15:01:39 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_getrusage.c,v 1.3 2014/09/03 19:24:12 matt Exp $ */
+/* $NetBSD: t_getrusage.c,v 1.4 2016/08/05 15:01:39 scole 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.3 2014/09/03 19:24:12 matt Exp $");
+__RCSID("$NetBSD: t_getrusage.c,v 1.4 2016/08/05 15:01:39 scole Exp $");
 
 #include <sys/resource.h>
 #include <sys/time.h>
@@ -60,6 +60,8 @@
        while (n > 0) {
 #ifdef __or1k__
                 asm volatile("l.nop"); /* Do something. */
+#elif defined(__ia64__)
+                asm volatile("nop 0"); /* Do something. */
 #else
                 asm volatile("nop");   /* Do something. */
 #endif



Home | Main Index | Thread Index | Old Index