Date: Sat, 11 Mar 2006 03:41:47 GMT From: Kip Macy <kmacy@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 93129 for review Message-ID: <200603110341.k2B3flrM055911@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=93129 Change 93129 by kmacy@kmacy_storage:sun4v_work on 2006/03/11 03:41:12 set tf pointer before calling ast raise tl before setting context correctly copy secondary context to primary context Affected files ... .. //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/exception.S#24 edit Differences ... ==== //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/exception.S#24 (text+ko) ==== @@ -501,6 +501,8 @@ .macro tl1_align MAGIC_TRAP_ON + MAGIC_TRAP_ON + MAGIC_EXIT .align 32 .endm @@ -910,6 +912,7 @@ mov %l7, %o0 ENTRY(user_rtt) + add %sp, CCFSZ + SPOFF, %l7 ! pil handling needs to be re-visited wrpr %g0, PIL_TICK, %pil ldx [PCPU(CURTHREAD)], %l0 @@ -950,9 +953,11 @@ wrpr %g0, 0, %pil ! drop pil to 0 + wrpr %g0, 1, %tl ! raise tl -> 1 before setting pcontext + mov MMU_CID_S, %g1 GET_MMU_CONTEXT(%g1, %g2) - mov MMU_CID_S, %g1 + mov MMU_CID_P, %g1 sethi %hi(FLUSH_ADDR), %g3 SET_MMU_CONTEXT(%g1, %g2) flush %g3 ! flush required by immu
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603110341.k2B3flrM055911>