Date: Thu, 6 Jul 2006 00:52:50 GMT From: Olivier Houchard <cognet@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 100684 for review Message-ID: <200607060052.k660qoG7096206@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=100684 Change 100684 by cognet@cognet on 2006/07/06 00:52:15 Ooops prefix the cp number with $. Affected files ... .. //depot/projects/mips2/src/sys/mips/include/cpufunc.h#3 edit Differences ... ==== //depot/projects/mips2/src/sys/mips/include/cpufunc.h#3 (text+ko) ==== @@ -44,9 +44,9 @@ { register_t ret, tmp; - __asm __volatile("mfc0 %0, 12\n" /* MIPS_COP_0_STATUS */ - "and %1, %0, ~1\n" /* MIPS_SR_INT_IE */ - "mtc0 %1, 12\n" /* MIPS_COP_0_STATUS */ + __asm __volatile("mfc0 %0, $12\n" /* MIPS_COP_0_STATUS */ + "and %1, $%0, ~1\n" /* MIPS_SR_INT_IE */ + "mtc0 %1, $12\n" /* MIPS_COP_0_STATUS */ : "=r" (ret), "=r" (tmp)); return (ret); } @@ -56,9 +56,9 @@ { register_t tmp; - __asm __volatile("mfc %0, 12\n" /* MIPS_COP_0_STATUS */ + __asm __volatile("mfc %0, $12\n" /* MIPS_COP_0_STATUS */ "and %0, %0, 1\n" /* MIPS_SR_INT_IE */ - "mtc0 %0, 12\n" /* MIPS_COP_0_STATUS */ + "mtc0 %0, $12\n" /* MIPS_COP_0_STATUS */ : "=r" (tmp)); } @@ -66,7 +66,7 @@ intr_restore(register_t flag) { - __asm __volatile("mtc0 %0, 12\n" /* MIPS_COP_0_STATUS */ + __asm __volatile("mtc0 %0, $12\n" /* MIPS_COP_0_STATUS */ : : "r" (flag)); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607060052.k660qoG7096206>