Date: Mon, 3 Apr 2006 07:34:00 GMT From: Kip Macy <kmacy@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 94523 for review Message-ID: <200604030734.k337Y01m058988@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=94523 Change 94523 by kmacy@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) +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604030734.k337Y01m058988>