From owner-p4-projects@FreeBSD.ORG Fri Feb 1 03:10:05 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 79D0016A420; Fri, 1 Feb 2008 03:10:05 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2520F16A419 for ; Fri, 1 Feb 2008 03:10:05 +0000 (UTC) (envelope-from imp@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 197DC13C448 for ; Fri, 1 Feb 2008 03:10:05 +0000 (UTC) (envelope-from imp@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m113A4P8043187 for ; Fri, 1 Feb 2008 03:10:04 GMT (envelope-from imp@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m113A4eG043183 for perforce@freebsd.org; Fri, 1 Feb 2008 03:10:04 GMT (envelope-from imp@freebsd.org) Date: Fri, 1 Feb 2008 03:10:04 GMT Message-Id: <200802010310.m113A4eG043183@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to imp@freebsd.org using -f From: Warner Losh To: Perforce Change Reviews Cc: Subject: PERFORCE change 134570 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, 01 Feb 2008 03:10:05 -0000 http://perforce.freebsd.org/chv.cgi?CH=134570 Change 134570 by imp@imp_lighthouse on 2008/02/01 03:09:15 Since this kernel is a 32-bit kernel, but one that needs to allow 64-bit hardware access, copy the TLBMiss handler to XTLBMiss. This works so long as we don't have any real 64-bit addresses to translate, and allows the 64-bit hardware accesses to succeed. We need to copy over the KX bit setting from the Cavium code drop, but this allows the bcopy that took forever to complete. Affected files ... .. //depot/projects/mips2-jnpr/src/sys/mips/mips/machdep.c#20 edit Differences ... ==== //depot/projects/mips2-jnpr/src/sys/mips/mips/machdep.c#20 (text+ko) ==== @@ -434,6 +434,12 @@ bcopy(MipsTLBMiss, (void *)TLB_MISS_EXC_VEC, MipsTLBMissEnd - MipsTLBMiss); +#ifdef TARGET_OCTEON +/* Fake, but sufficient, for the 32-bit with 64-bit hardware addresses */ + bcopy(MipsTLBMiss, (void *)XTLB_MISS_EXC_VEC, + MipsTLBMissEnd - MipsTLBMiss); +#endif + bcopy(MipsException, (void *)GEN_EXC_VEC, MipsExceptionEnd - MipsException);