From owner-cvs-src-old@FreeBSD.ORG Thu Jul 15 01:48:04 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 638E91065780 for ; Thu, 15 Jul 2010 01:48:04 +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 516528FC1B for ; Thu, 15 Jul 2010 01:48:04 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o6F1m479047701 for ; Thu, 15 Jul 2010 01:48:04 GMT (envelope-from imp@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o6F1m47v047700 for cvs-src-old@freebsd.org; Thu, 15 Jul 2010 01:48:04 GMT (envelope-from imp@repoman.freebsd.org) Message-Id: <201007150148.o6F1m47v047700@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to imp@repoman.freebsd.org using -f From: Warner Losh Date: Thu, 15 Jul 2010 01:47:47 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/mips/mips db_trace.c swtch.S vm_machdep.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jul 2010 01:48:04 -0000 imp 2010-07-15 01:47:47 UTC FreeBSD src repository Modified files: sys/mips/mips db_trace.c swtch.S vm_machdep.c Log: SVN rev 210096 on 2010-07-15 01:47:47Z by imp Remove one layer of indirection. No need to call cpu_throw which then calls mips_cpu_call via an obfuscated assembler call. Instead, delete the current cpu_throw, and rename mips_cpu_throw to cpu_throw. This is nicer to the cache on each context switch (since fixed jumps can be prefected, while jumps through a register can't). Incidentally, it also saves about 5 or 6 instructions. Reviewed by: jmallet@ Revision Changes Path 1.10 +2 -2 src/sys/mips/mips/db_trace.c 1.12 +2 -2 src/sys/mips/mips/swtch.S 1.16 +0 -8 src/sys/mips/mips/vm_machdep.c