From owner-svn-src-head@FreeBSD.ORG Sun Sep 29 10:14:16 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id D26776DB; Sun, 29 Sep 2013 10:14:16 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BFD662F9C; Sun, 29 Sep 2013 10:14:16 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r8TAEGWU084025; Sun, 29 Sep 2013 10:14:16 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r8TAEGCI084024; Sun, 29 Sep 2013 10:14:16 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201309291014.r8TAEGCI084024@svn.freebsd.org> From: Adrian Chadd Date: Sun, 29 Sep 2013 10:14:16 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r255935 - head/sys/mips/mips X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Sep 2013 10:14:16 -0000 Author: adrian Date: Sun Sep 29 10:14:16 2013 New Revision: 255935 URL: http://svnweb.freebsd.org/changeset/base/255935 Log: Add pagemask debugging output in "show tlb" in the debugger. Approved by: re (marius) Obtained from: bsdimp Modified: head/sys/mips/mips/tlb.c Modified: head/sys/mips/mips/tlb.c ============================================================================== --- head/sys/mips/mips/tlb.c Sun Sep 29 07:42:25 2013 (r255934) +++ head/sys/mips/mips/tlb.c Sun Sep 29 10:14:16 2013 (r255935) @@ -54,6 +54,7 @@ struct tlb_state { register_t entryhi; register_t entrylo0; register_t entrylo1; + register_t pagemask; } entry[MIPS_MAX_TLB_ENTRIES]; }; @@ -285,6 +286,7 @@ tlb_save(void) tlb_read(); tlb_state[cpu].entry[i].entryhi = mips_rd_entryhi(); + tlb_state[cpu].entry[i].pagemask = mips_rd_pagemask(); tlb_state[cpu].entry[i].entrylo0 = mips_rd_entrylo0(); tlb_state[cpu].entry[i].entrylo1 = mips_rd_entrylo1(); } @@ -339,7 +341,7 @@ tlb_invalidate_one(unsigned i) DB_SHOW_COMMAND(tlb, ddb_dump_tlb) { - register_t ehi, elo0, elo1; + register_t ehi, elo0, elo1, epagemask; unsigned i, cpu, ntlb; /* @@ -378,11 +380,12 @@ DB_SHOW_COMMAND(tlb, ddb_dump_tlb) ehi = tlb_state[cpu].entry[i].entryhi; elo0 = tlb_state[cpu].entry[i].entrylo0; elo1 = tlb_state[cpu].entry[i].entrylo1; + epagemask = tlb_state[cpu].entry[i].pagemask; if (elo0 == 0 && elo1 == 0) continue; - db_printf("#%u\t=> %jx\n", i, (intmax_t)ehi); + db_printf("#%u\t=> %jx (pagemask %jx)\n", i, (intmax_t)ehi, (intmax_t) epagemask); db_printf(" Lo0\t%jx\t(%#jx)\n", (intmax_t)elo0, (intmax_t)TLBLO_PTE_TO_PA(elo0)); db_printf(" Lo1\t%jx\t(%#jx)\n", (intmax_t)elo1, (intmax_t)TLBLO_PTE_TO_PA(elo1)); }