From owner-p4-projects@FreeBSD.ORG Fri Jul 7 11:45:24 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 82C1316A4E2; Fri, 7 Jul 2006 11:45:24 +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 1F14216A4E0 for ; Fri, 7 Jul 2006 11:45:24 +0000 (UTC) (envelope-from bms@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D7F7843D45 for ; Fri, 7 Jul 2006 11:45:23 +0000 (GMT) (envelope-from bms@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 k67BjNgh000959 for ; Fri, 7 Jul 2006 11:45:23 GMT (envelope-from bms@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k67BjNw2000956 for perforce@freebsd.org; Fri, 7 Jul 2006 11:45:23 GMT (envelope-from bms@freebsd.org) Date: Fri, 7 Jul 2006 11:45:23 GMT Message-Id: <200607071145.k67BjNw2000956@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bms@freebsd.org using -f From: Bruce M Simpson To: Perforce Change Reviews Cc: Subject: PERFORCE change 100867 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, 07 Jul 2006 11:45:24 -0000 http://perforce.freebsd.org/chv.cgi?CH=100867 Change 100867 by bms@bms_montagne on 2006/07/07 11:45:16 mips64 -> mips32 Affected files ... .. //depot/projects/mips2/src/sys/conf/kern.mk#4 edit .. //depot/projects/mips2/src/sys/mips/include/cpufunc.h#9 edit .. //depot/projects/mips2/src/sys/mips/mips/tlb.c#2 edit Differences ... ==== //depot/projects/mips2/src/sys/conf/kern.mk#4 (text+ko) ==== @@ -88,7 +88,7 @@ .if ${MACHINE_ARCH} == "mips" CFLAGS+= -msoft-float -mno-abicalls -mips32 # XXX for debugging the build -CFLAGS+= -save-temps +#CFLAGS+= -save-temps INLINE_LIMIT?= 15000 .endif ==== //depot/projects/mips2/src/sys/mips/include/cpufunc.h#9 (text+ko) ==== @@ -104,6 +104,8 @@ #endif } +#if 0 /* XXX mips64 */ + #define MIPS_RDRW64_COP0(n,r) \ static __inline u_int64_t \ mips_rd_ ## n (void) \ @@ -133,6 +135,7 @@ MIPS_RDRW64_COP0(xcontext, MIPS_COP_0_TLB_XCONTEXT); #undef MIPS_RDRW64_COP0 +#endif #define MIPS_RDRW32_COP0(n,r) \ static __inline u_int32_t \ @@ -164,6 +167,12 @@ MIPS_RDRW32_COP0(cause, MIPS_COP_0_CAUSE); MIPS_RDRW32_COP0(status, MIPS_COP_0_STATUS); +/* XXX: mips32 */ +MIPS_RDRW32_COP0(entrylow, MIPS_COP_0_TLB_LOW); +MIPS_RDRW32_COP0(entryhi, MIPS_COP_0_TLB_HI); +MIPS_RDRW32_COP0(pagemask, MIPS_COP_0_TLB_PG_MASK); +/* xcontext does not exist on mips32 */ + #undef MIPS_RDRW32_COP0 static __inline register_t ==== //depot/projects/mips2/src/sys/mips/mips/tlb.c#2 (text+ko) ==== @@ -115,10 +115,12 @@ */ mips_wr_wired(1); +#if 0 /* * Set up page table. */ - mips_wr_xcontext((uintptr_t)kptmap); + mips_wr_xcontext((uintptr_t)kptmap); /* XXX: mips64 */ +#endif } void @@ -214,8 +216,12 @@ /* Bogus VPN2. */ ehi = MIPS_KSEG1_END + 2 * i * PAGE_SIZE; mips_wr_index(i); +#if 0 mips_wr_entrylo0(0); - mips_wr_entrylo1(0); + mips_wr_entrylo1(0); /* XXX mips64 */ +#else + mips_wr_entrylow(0); +#endif mips_wr_entryhi(ehi); mips_tlbwi(); }