From owner-freebsd-ia64@FreeBSD.ORG Wed Feb 13 19:26:16 2008 Return-Path: Delivered-To: ia64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 68E4416A418 for ; Wed, 13 Feb 2008 19:26:16 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from smtpoutm.mac.com (smtpoutm.mac.com [17.148.16.71]) by mx1.freebsd.org (Postfix) with ESMTP id 58F4713C45D for ; Wed, 13 Feb 2008 19:26:16 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from mac.com (asmtp008-s [10.150.69.71]) by smtpoutm.mac.com (Xserve/smtpout008/MantshX 4.0) with ESMTP id m1DJFoOC026904 for ; Wed, 13 Feb 2008 11:15:50 -0800 (PST) Received: from macbook-pro.jnpr.net (natint3.juniper.net [66.129.224.36]) (authenticated bits=0) by mac.com (Xserve/asmtp008/MantshX 4.0) with ESMTP id m1DJFm3Q006211 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Wed, 13 Feb 2008 11:15:49 -0800 (PST) Message-Id: <6C851D25-4B3A-4563-8363-C1BD9A14C1AC@mac.com> From: Marcel Moolenaar To: ia64@freebsd.org Content-Type: multipart/mixed; boundary=Apple-Mail-5--862834871 Mime-Version: 1.0 (Apple Message framework v919.2) Date: Wed, 13 Feb 2008 11:15:48 -0800 X-Mailer: Apple Mail (2.919.2) Cc: Subject: FreeBSD on Montecito: solved... X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Feb 2008 19:26:16 -0000 --Apple-Mail-5--862834871 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit All, I recently found some time again to play around with Montecito and the good news is that I have FreeBSD up and running!!! The problem was the I-cache all along. My initial hacking to deal with the I-cache incoherency was flawed and it threw me off-track. The attached patch, which undoubtedly is a big kluge, works. I'll be working in the next couple of days/weeks to come up with a real solution... FYI, --Apple-Mail-5--862834871 Content-Disposition: attachment; filename=ia64.diff Content-Type: application/octet-stream; x-unix-mode=0644; name="ia64.diff" Content-Transfer-Encoding: 7bit Index: pmap.c =================================================================== RCS file: /home/ncvs/src/sys/ia64/ia64/pmap.c,v retrieving revision 1.196 diff -u -r1.196 pmap.c --- pmap.c 3 Jan 2008 07:34:33 -0000 1.196 +++ pmap.c 13 Feb 2008 19:03:11 -0000 @@ -1183,6 +1183,7 @@ pmap_set_pte(struct ia64_lpte *pte, vm_offset_t va, vm_offset_t pa, boolean_t wired, boolean_t managed) { + vm_offset_t lim; pte->pte &= PTE_PROT_MASK | PTE_PL_MASK | PTE_AR_MASK | PTE_ED; pte->pte |= PTE_PRESENT | PTE_MA_WB; @@ -1193,6 +1194,12 @@ pte->itir = PAGE_SHIFT << 2; pte->tag = ia64_ttag(va); + + lim = va + PAGE_SIZE; + while (va < lim) { + __asm __volatile("fc.i %0" :: "r"(va)); + va += 32; + } } /* --Apple-Mail-5--862834871 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit -- Marcel Moolenaar xcllnt@mac.com --Apple-Mail-5--862834871--