From owner-p4-projects@FreeBSD.ORG Fri Mar 10 09:04:09 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 D420916A423; Fri, 10 Mar 2006 09:04:08 +0000 (GMT) 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 A31F416A420 for ; Fri, 10 Mar 2006 09:04:08 +0000 (GMT) (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 71B4343D48 for ; Fri, 10 Mar 2006 09:04:08 +0000 (GMT) (envelope-from kmacy@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k2A948FF085617 for ; Fri, 10 Mar 2006 09:04:08 GMT (envelope-from kmacy@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k2A948lR085614 for perforce@freebsd.org; Fri, 10 Mar 2006 09:04:08 GMT (envelope-from kmacy@freebsd.org) Date: Fri, 10 Mar 2006 09:04:08 GMT Message-Id: <200603100904.k2A948lR085614@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 93103 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: Fri, 10 Mar 2006 09:04:09 -0000 http://perforce.freebsd.org/chv.cgi?CH=93103 Change 93103 by kmacy@kmacy_storage:sun4v_work on 2006/03/10 09:03:07 we're currently setting the context area in the TTE tag consequently we need to set the TSB context index to -1 Affected files ... .. //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/tsb.c#10 edit Differences ... ==== //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/tsb.c#10 (text+ko) ==== @@ -83,14 +83,18 @@ hvtsb->hvtsb_idxpgsz = TTE8K; hvtsb->hvtsb_assoc = 1; hvtsb->hvtsb_ntte = (PAGE_SIZE >> TTE_SHIFT); - hvtsb->hvtsb_ctx_index = 0; + hvtsb->hvtsb_ctx_index = -1; /* TSBs aren't shared so if we don't + * set the context in the TTEs we can + * simplify miss handling slightly + */ hvtsb->hvtsb_pgszs = TSB8K; hvtsb->hvtsb_rsvd = 0; hvtsb->hvtsb_pa = VM_PAGE_TO_PHYS(m); tsb_pages = hvtsb->hvtsb_ntte >> (PAGE_SHIFT - TTE_SHIFT); *scratchval = hvtsb->hvtsb_pa | tsb_pages; - + + printf("hvtsb_pa=0x%lx\n", hvtsb->hvtsb_pa); return vtophys(hvtsb); }