Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/isa Adjust asm statement for newer GCCs.
details: https://anonhg.NetBSD.org/src/rev/9b1263b55881
branches: trunk
changeset: 485721:9b1263b55881
user: mycroft <mycroft%NetBSD.org@localhost>
date: Wed May 03 21:32:59 2000 +0000
description:
Adjust asm statement for newer GCCs.
diffstat:
sys/arch/i386/isa/clock.c | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diffs (28 lines):
diff -r 8f98a69dca09 -r 9b1263b55881 sys/arch/i386/isa/clock.c
--- a/sys/arch/i386/isa/clock.c Wed May 03 21:20:07 2000 +0000
+++ b/sys/arch/i386/isa/clock.c Wed May 03 21:32:59 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: clock.c,v 1.63 2000/02/02 15:26:27 minoura Exp $ */
+/* $NetBSD: clock.c,v 1.64 2000/05/03 21:32:59 mycroft Exp $ */
/*-
* Copyright (c) 1993, 1994 Charles M. Hannum.
@@ -463,14 +463,13 @@
* code so we can take advantage of the intermediate 64-bit
* quantity to prevent loss of significance.
*/
- register int m;
+ int m;
__asm __volatile("mul %3"
: "=a" (n), "=d" (m)
: "0" (n), "r" (TIMER_FREQ));
- __asm __volatile("div %3"
- : "=a" (n)
- : "0" (n), "d" (m), "r" (1000000)
- : "%edx");
+ __asm __volatile("div %4"
+ : "=a" (n), "=d" (m)
+ : "0" (n), "1" (m), "r" (1000000));
#else
/*
* Calculate ((n * TIMER_FREQ) / 1e6) without using floating
Home |
Main Index |
Thread Index |
Old Index