PERFORCE change 93129 for review
Kip Macy
kmacy at FreeBSD.org
Sat Mar 11 03:41:51 GMT 2006
http://perforce.freebsd.org/chv.cgi?CH=93129
Change 93129 by kmacy at 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
More information about the p4-projects
mailing list