Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/hp300/hp300 Slightly rearrange the inline assembly ...



details:   https://anonhg.NetBSD.org/src/rev/0e38dacc223d
branches:  trunk
changeset: 473689:0e38dacc223d
user:      kleink <kleink%NetBSD.org@localhost>
date:      Tue Jun 15 15:18:55 1999 +0000

description:
Slightly rearrange the inline assembly in ledcontrol() to avoid frobbing a
C symbol name prefix.

diffstat:

 sys/arch/hp300/hp300/leds.c |  11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diffs (24 lines):

diff -r 46260f8e719f -r 0e38dacc223d sys/arch/hp300/hp300/leds.c
--- a/sys/arch/hp300/hp300/leds.c       Tue Jun 15 15:04:56 1999 +0000
+++ b/sys/arch/hp300/hp300/leds.c       Tue Jun 15 15:18:55 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: leds.c,v 1.4 1999/03/26 23:41:29 mycroft Exp $ */
+/*     $NetBSD: leds.c,v 1.5 1999/06/15 15:18:55 kleink Exp $  */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -78,9 +78,10 @@
        int ons, offs, togs;
 {
 
-       __asm __volatile ("     orb     %0,_currentleds;
-                               andb    %1,_currentleds;
-                               eorb    %2,_currentleds"
-                                   : : "d" (ons), "d" (~offs), "d" (togs));
+       __asm __volatile ("     orb     %1,%0;
+                               andb    %2,%0;
+                               eorb    %3,%0"
+                                   : "=m" (currentleds)
+                                   : "d" (ons), "d" (~offs), "d" (togs));
        *ledaddr = ~currentleds;
 }



Home | Main Index | Thread Index | Old Index