PERFORCE change 94523 for review
Kip Macy
kmacy at FreeBSD.org
Mon Apr 3 07:34:01 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=94523
Change 94523 by kmacy at kmacy_storage:sun4v_work on 2006/04/03 07:33:58
add pmap IPI handlers
Affected files ...
.. //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/interrupt.S#5 edit
Differences ...
==== //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/interrupt.S#5 (text+ko) ====
@@ -138,7 +138,6 @@
*
*/
ENTRY(cpu_mondo)
- MAGIC_TRAP_ON
!
! Register Usage:-
! %g5 PC for fasttrap TL>0 handler
@@ -345,3 +344,64 @@
END(dev_mondo)
#endif /* lint */
+ENTRY(tl_invlctx)
+ mov %o0, %g3
+ mov %o1, %g4
+ mov %o2, %g5
+ mov %o3, %g6
+ mov %o5, %g7
+ mov %g0, %o0
+ mov %g0, %o1
+ mov %g1, %o2
+ mov MAP_ITLB|MAP_DTLB, %o3
+ mov MMU_DEMAP_CTX, %o5
+ ta FAST_TRAP
+ brz,pt %o0, 1f
+ nop
+ ba panic_bad_hcall
+ mov MMU_DEMAP_CTX, %o1
+1:
+ mov %g3, %o0
+ mov %g4, %o1
+ mov %g5, %o2
+ mov %g6, %o3
+ mov %g7, %o5
+ retry
+END(tl_invlctx)
+
+ENTRY(tl_invltlb)
+ mov %o0, %g1
+ mov %o1, %g2
+ mov %o2, %g3
+ mov %o5, %g4
+
+ mov %g0, %o0
+ mov %g0, %o1
+ mov MAP_ITLB | MAP_DTLB, %o2
+ mov MMU_DEMAP_ALL, %o5
+ ta FAST_TRAP
+ brz,pt %o0, 1f
+ nop
+ ba panic_bad_hcall
+1:
+ mov %g1, %o0
+ mov %g2, %o1
+ mov %g3, %o2
+ mov %g4, %o5
+ retry
+END(tl_invltlb)
+
+ENTRY(tl_invlpg)
+ mov %o0, %g5
+ mov %o1, %g6
+ mov %o2, %g7
+ mov MAP_ITLB|MAP_DTLB, %o2
+ mov %g1, %o0
+ mov %g2, %o1
+ ta MMU_UNMAP_ADDR
+ mov %g5, %o0
+ mov %g6, %o1
+ mov %g7, %o2
+ retry
+END(tl_invlpg)
+
More information about the p4-projects
mailing list