From owner-cvs-all@FreeBSD.ORG Thu Aug 7 22:47:17 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 33A86106564A; Thu, 7 Aug 2008 22:47:17 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 1FBBF8FC15; Thu, 7 Aug 2008 22:47:17 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.2/8.14.2) with ESMTP id m77MlHTP033168; Thu, 7 Aug 2008 22:47:17 GMT (envelope-from marius@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m77MlGGC033167; Thu, 7 Aug 2008 22:47:16 GMT (envelope-from marius@repoman.freebsd.org) Message-Id: <200808072247.m77MlGGC033167@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to marius@repoman.freebsd.org using -f From: Marius Strobl Date: Thu, 7 Aug 2008 22:46:25 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/boot/sparc64/loader locore.S main.c src/sys/sparc64/include tte.h src/sys/sun4v/include tte.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Aug 2008 22:47:17 -0000 marius 2008-08-07 22:46:25 UTC FreeBSD src repository Modified files: sys/boot/sparc64/loader locore.S main.c sys/sparc64/include tte.h sys/sun4v/include tte.h Log: SVN rev 181398 on 2008-08-07 22:46:25Z by marius - Reimplement {d,i}tlb_enter() and {d,i}tlb_va_to_pa() in C. There's no particular reason for them to be implemented in assembler and having them in C allows easier extension as well as using more C macros and {d,i}tlb_slot_max rather than hard-coding magic (and actually spitfire-only) values. - Fix the compilation of pmap_print_tte(). - Change pmap_print_tlb() to use ldxa() rather than re-rolling it inline as well as TLB_DAR_SLOT and {d,i}tlb_slot_max rather than hardcoding magic (and actually spitfire-only) values. - While at it, suffix the above mentioned functions with "_sun4u" to underline they're architecture-specific. - Use __FBSDID and macros instead of magic values in locore.S. - Remove unused includes and smp_stack in locore.S. Revision Changes Path 1.8 +11 -82 src/sys/boot/sparc64/loader/locore.S 1.33 +97 -39 src/sys/boot/sparc64/loader/main.c 1.17 +5 -1 src/sys/sparc64/include/tte.h 1.3 +4 -0 src/sys/sun4v/include/tte.h