Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hp700/dev Use fdcache instead of inline assembler.



details:   https://anonhg.NetBSD.org/src/rev/246e3d7c2987
branches:  trunk
changeset: 749423:246e3d7c2987
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Nov 29 10:33:56 2009 +0000

description:
Use fdcache instead of inline assembler.

diffstat:

 sys/arch/hp700/dev/astro.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 19411f9ba4a0 -r 246e3d7c2987 sys/arch/hp700/dev/astro.c
--- a/sys/arch/hp700/dev/astro.c        Sun Nov 29 10:30:07 2009 +0000
+++ b/sys/arch/hp700/dev/astro.c        Sun Nov 29 10:33:56 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: astro.c,v 1.6 2009/11/29 10:15:07 skrll Exp $  */
+/*     $NetBSD: astro.c,v 1.7 2009/11/29 10:33:56 skrll Exp $  */
 
 /*     $OpenBSD: astro.c,v 1.8 2007/10/06 23:50:54 krw Exp $   */
 
@@ -736,7 +736,7 @@
        tte |= IOTTE_V;
 
        *tte_ptr = htole64(tte);
-       __asm volatile("fdc 0(%%sr1, %0)\n\tsync" : : "r" (tte_ptr));
+       fdcache(HPPA_SID_KERNEL, tte_ptr, sizeof(*tte_ptr));
 }
 
 /*



Home | Main Index | Thread Index | Old Index