Module Name:    src
Committed By:   skrll
Date:           Sun Nov 29 10:33:56 UTC 2009

Modified Files:
        src/sys/arch/hp700/dev: astro.c

Log Message:
Use fdcache instead of inline assembler.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/hp700/dev/astro.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/hp700/dev/astro.c
diff -u src/sys/arch/hp700/dev/astro.c:1.6 src/sys/arch/hp700/dev/astro.c:1.7
--- src/sys/arch/hp700/dev/astro.c:1.6	Sun Nov 29 10:15:07 2009
+++ src/sys/arch/hp700/dev/astro.c	Sun Nov 29 10:33:56 2009
@@ -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));
 }
 
 /*

Reply via email to