PERFORCE change 91453 for review

Todd Miller millert at FreeBSD.org
Thu Feb 9 11:31:53 PST 2006


http://perforce.freebsd.org/chv.cgi?CH=91453

Change 91453 by millert at 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();


More information about the p4-projects mailing list