Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Aug 2006 21:28:12 GMT
From:      Todd Miller <millert@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 105369 for review
Message-ID:  <200608302128.k7ULSCFB038114@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=105369

Change 105369 by millert@millert_g4tower on 2006/08/30 21:28:03

	Add back task_name_t since it is still present in the 10.4.7
	binary release.  This fixes a problem where a machine with
	SEDarwin installed could not self-host.

Affected files ...

.. //depot/projects/trustedbsd/sedarwin8/darwin/xnu/osfmk/mach/mach_types.defs#2 edit
.. //depot/projects/trustedbsd/sedarwin8/darwin/xnu/osfmk/mach/mach_types.h#2 edit

Differences ...

==== //depot/projects/trustedbsd/sedarwin8/darwin/xnu/osfmk/mach/mach_types.defs#2 (text+ko) ====

@@ -104,6 +104,14 @@
 #endif	/* KERNEL_SERVER */
 		;
 
+type task_name_t = mach_port_t
+#if	KERNEL_SERVER
+		intran: task_name_t convert_port_to_task_name(mach_port_t)
+		outtran: mach_port_t convert_task_name_to_port(task_name_t)
+		destructor: task_name_deallocate(task_name_t)
+#endif	/* KERNEL_SERVER */
+		;
+
 type thread_t = mach_port_t
 #if	KERNEL_SERVER
 		intran: thread_t convert_port_to_thread(mach_port_t)

==== //depot/projects/trustedbsd/sedarwin8/darwin/xnu/osfmk/mach/mach_types.h#2 (text+ko) ====

@@ -151,6 +151,7 @@
  * ports at user-space.
  */
 typedef mach_port_t		task_t;
+typedef mach_port_t		task_name_t;
 typedef mach_port_t		thread_t;
 typedef	mach_port_t		thread_act_t;
 typedef mach_port_t		ipc_space_t;
@@ -236,6 +237,7 @@
 
 
 #define TASK_NULL		((task_t) 0)
+#define TASK_NAME_NULL		((task_name_t) 0)
 #define THREAD_NULL		((thread_t) 0)
 #define THR_ACT_NULL 		((thread_act_t) 0)
 #define IPC_SPACE_NULL		((ipc_space_t) 0)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608302128.k7ULSCFB038114>