PERFORCE change 136933 for review
Randall R. Stewart
rrs at FreeBSD.org
Wed Mar 5 18:09:34 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=136933
Change 136933 by rrs at 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
More information about the p4-projects
mailing list