From owner-p4-projects@FreeBSD.ORG Thu Feb 9 19:31:52 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 498FB16A423; Thu, 9 Feb 2006 19:31:52 +0000 (GMT) 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 EA8DB16A420 for ; Thu, 9 Feb 2006 19:31:51 +0000 (GMT) (envelope-from millert@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id B918B43D45 for ; Thu, 9 Feb 2006 19:31:51 +0000 (GMT) (envelope-from millert@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k19JVpuf029131 for ; Thu, 9 Feb 2006 19:31:51 GMT (envelope-from millert@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k19JVpxF029128 for perforce@freebsd.org; Thu, 9 Feb 2006 19:31:51 GMT (envelope-from millert@freebsd.org) Date: Thu, 9 Feb 2006 19:31:51 GMT Message-Id: <200602091931.k19JVpxF029128@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to millert@freebsd.org using -f From: Todd Miller To: Perforce Change Reviews Cc: Subject: PERFORCE change 91453 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: Thu, 09 Feb 2006 19:31:53 -0000 http://perforce.freebsd.org/chv.cgi?CH=91453 Change 91453 by millert@millert_ibook on 2006/02/09 19:30:51 Less hackish method of disabling the hot path Affected files ... .. //depot/projects/trustedbsd/sedarwin7/src/darwin/xnu/osfmk/ipc/mach_msg.c#7 edit Differences ... ==== //depot/projects/trustedbsd/sedarwin7/src/darwin/xnu/osfmk/ipc/mach_msg.c#7 (text+ko) ==== @@ -581,7 +581,11 @@ #endif /* !HOTPATH_DEBUG */ +#ifdef MAC +boolean_t enable_hotpath = FALSE; /* XXX - push MAC into HOTPATH too */ +#else boolean_t enable_hotpath = TRUE; /* Patchable, just in case ... */ +#endif #endif /* HOTPATH_ENABLE */ /* @@ -613,7 +617,7 @@ option & ~(MACH_SEND_TRAILER|MACH_RCV_TRAILER_MASK|MACH_RCV_LARGE); int i; -#if ENABLE_HOTPATH_INSECURE +#if ENABLE_HOTPATH /* BEGINNING OF HOT PATH */ if ((masked_option == (MACH_SEND_MSG|MACH_RCV_MSG)) && enable_hotpath) { register thread_t self = current_thread();