Module Name: src Committed By: skrll Date: Sun Nov 29 10:15:08 UTC 2009
Modified Files: src/sys/arch/hp700/dev: astro.c Log Message: Use lci. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 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.5 src/sys/arch/hp700/dev/astro.c:1.6 --- src/sys/arch/hp700/dev/astro.c:1.5 Fri May 8 09:33:57 2009 +++ src/sys/arch/hp700/dev/astro.c Sun Nov 29 10:15:07 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: astro.c,v 1.5 2009/05/08 09:33:57 skrll Exp $ */ +/* $NetBSD: astro.c,v 1.6 2009/11/29 10:15:07 skrll Exp $ */ /* $OpenBSD: astro.c,v 1.8 2007/10/06 23:50:54 krw Exp $ */ @@ -730,8 +730,7 @@ } #endif - mtsp(HPPA_SID_KERNEL, 1); - __asm volatile("lci 0(%%sr1, %1), %0" : "=r" (ci) : "r" (va)); + ci = lci(HPPA_SID_KERNEL, va); tte = (pa & IOTTE_PAMASK) | ((ci >> 12) & IOTTE_CI); tte |= IOTTE_V;