From owner-p4-projects@FreeBSD.ORG Thu Jun 1 07:33:08 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id DBAFB16BF71; Thu, 1 Jun 2006 07:33:07 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 29A7816B8E4 for ; Thu, 1 Jun 2006 07:33:07 +0000 (UTC) (envelope-from kmacy@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE3AC43D7B for ; Thu, 1 Jun 2006 07:33:04 +0000 (GMT) (envelope-from kmacy@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k517VddJ062174 for ; Thu, 1 Jun 2006 07:31:39 GMT (envelope-from kmacy@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k517VdOw062171 for perforce@freebsd.org; Thu, 1 Jun 2006 07:31:39 GMT (envelope-from kmacy@freebsd.org) Date: Thu, 1 Jun 2006 07:31:39 GMT Message-Id: <200606010731.k517VdOw062171@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to kmacy@freebsd.org using -f From: Kip Macy To: Perforce Change Reviews Cc: Subject: PERFORCE change 98256 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 07:33:17 -0000 http://perforce.freebsd.org/chv.cgi?CH=98256 Change 98256 by kmacy@kmacy_storage:sun4v_work on 2006/06/01 07:31:30 track the context and address that caused an alignment fault at tl1 Affected files ... .. //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/exception.S#60 edit Differences ... ==== //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/exception.S#60 (text+ko) ==== @@ -965,7 +965,7 @@ mov %l7, %o0 call spinlock_exit nop - b user_rtt + ba,pt %xcc, user_rtt nop common_utrap: jmpl %l3, %o7 ! call trap handler / syscall @@ -976,6 +976,7 @@ sub %g6, TF_SIZEOF, %sp add %sp, REGOFF + SPOFF, %l7 ENTRY(user_rtt) + nop ! pil handling needs to be re-visited wrpr %g0, PIL_TICK, %pil ldx [PCPU(CURTHREAD)], %l4 @@ -990,7 +991,7 @@ wrpr %g0, %l0, %pil call ast mov %l7, %o0 - ba,a,pt %xcc, user_rtt + ba,pt %xcc, user_rtt nop 1: @@ -1002,7 +1003,7 @@ mov T_SPILL, %o1 call trap mov %l7, %o0 - ba,a %xcc, user_rtt + ba,pt %xcc, user_rtt nop 2: @@ -1762,15 +1763,18 @@ wrpr %g0, 1, %gl rdpr %tt, %g5 GET_MMFSA_SCRATCH(%g7) + wr %g0, ASI_REAL, %asi + ldxa [%g7 + MMFSA_D_ADDR]%asi, %g6 + ldxa [%g7 + MMFSA_D_CTX]%asi, %g7 cmp %g5, T_ALIGNMENT be,pn %xcc, 3f - wr %g0, ASI_REAL, %asi - ldxa [%g7 + MMFSA_D_ADDR]%asi, %g6 - ldxa [%g7 + MMFSA_D_CTX]%asi, %g7 + nop srlx %g6, PAGE_SHIFT, %g6 sllx %g6, PAGE_SHIFT, %g6 ! mask off bottom or %g6, %g7, %g6 - -3: - done + done +3: + sllx %g7, TRAP_CTX_SHIFT, %g7 + or %g7, %g5, %g5 + done END(tl1_trap)