Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hpcmips/tx Avoid multi-line strings.
details: https://anonhg.NetBSD.org/src/rev/02b0e7a2d2b2
branches: trunk
changeset: 552485:02b0e7a2d2b2
user: simonb <simonb%NetBSD.org@localhost>
date: Fri Sep 26 15:34:11 2003 +0000
description:
Avoid multi-line strings.
diffstat:
sys/arch/hpcmips/tx/tx39clock.c | 33 ++++++++++++++++-----------------
1 files changed, 16 insertions(+), 17 deletions(-)
diffs (54 lines):
diff -r 4f12a253f3ed -r 02b0e7a2d2b2 sys/arch/hpcmips/tx/tx39clock.c
--- a/sys/arch/hpcmips/tx/tx39clock.c Fri Sep 26 15:29:22 2003 +0000
+++ b/sys/arch/hpcmips/tx/tx39clock.c Fri Sep 26 15:34:11 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tx39clock.c,v 1.14 2003/07/15 02:29:33 lukem Exp $ */
+/* $NetBSD: tx39clock.c,v 1.15 2003/09/26 15:34:11 simonb Exp $ */
/*-
* Copyright (c) 1999-2002 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tx39clock.c,v 1.14 2003/07/15 02:29:33 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tx39clock.c,v 1.15 2003/09/26 15:34:11 simonb Exp $");
#include "opt_tx39clock_debug.h"
@@ -156,21 +156,20 @@
int elapsed;
__tx39timer_rtcget(&t0);
- __asm__ __volatile__("
- .set noreorder;
- li $8, 10000000;
- 1: nop;
- nop;
- nop;
- nop;
- nop;
- nop;
- nop;
- add $8, $8, -1;
- bnez $8, 1b;
- nop;
- .set reorder;
- ");
+ __asm__ __volatile__(
+ ".set noreorder; \n\t"
+ "li $8, 10000000; \n"
+ "1: nop; \n\t"
+ "nop; \n\t"
+ "nop; \n\t"
+ "nop; \n\t"
+ "nop; \n\t"
+ "nop; \n\t"
+ "nop; \n\t"
+ "add $8, $8, -1; \n\t"
+ "bnez $8, 1b; \n\t"
+ "nop; \n\t"
+ ".set reorder;");
__tx39timer_rtcget(&t1);
elapsed = t1.t_lo - t0.t_lo;
Home |
Main Index |
Thread Index |
Old Index