Date: Wed, 5 Mar 2008 18:09:33 GMT From: "Randall R. Stewart" <rrs@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 136933 for review Message-ID: <200803051809.m25I9Xr7081560@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=136933 Change 136933 by rrs@rrs-mips2-jnpr on 2008/03/05 18:08:58 Adds support to turn on/off the unaligned access bit. Affected files ... .. //depot/projects/mips2-jnpr/src/sys/mips/mips/support.S#7 edit Differences ... ==== //depot/projects/mips2-jnpr/src/sys/mips/mips/support.S#7 (text+ko) ==== @@ -1484,3 +1484,35 @@ sw zero, U_PCB_ONFAULT(t1) /* clean up */ j ra END(casuptr) + + +#ifdef TARGET_OCTEON +/* + * octeon_set_unaligned(addr) + */ +LEAF(octeon_set_unaligned) + .set mips64r2 +/* dmfc0 a1, 9, 7*/ + .word 0x40254807 + sd a1, 0(a0) + or a1, a1, (OCTEON_UNALIGNED_ACCESS) +/* dmtc0 a1, 9, 7*/ + .word 0x40a54807 + jr ra + nop + .set mips0 +END(octeon_set_unaligned) + +LEAF(octeon_clr_unaligned) + .set mips64r2 +/* dmfc0 a1, 9, 7 */ + .word 0x40254807 + sd a1, 0(a0) + and a1, a1, ~(OCTEON_UNALIGNED_ACCESS) +/* dmtc0 a1, 9, 7 */ + .word 0x40a54807 + jr ra + nop + .set mips0 +END(octeon_clr_unaligned) +#endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803051809.m25I9Xr7081560>