summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/init-init.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libdiskfs/init-init.c b/libdiskfs/init-init.c
index e32207a4..9c8adc56 100644
--- a/libdiskfs/init-init.c
+++ b/libdiskfs/init-init.c
@@ -22,6 +22,14 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "priv.h"
#include <device/device.h>
+mach_port_t diskfs_host_priv;
+mach_port_t diskfs_master_device;
+mach_port_t diskfs_default_pager;
+mach_port_t diskfs_control_port;
+struct mapped_time_value diskfs_mtime;
+
+spin_lock_t diskfs_node_refcnt_lock = SPIN_LOCK_INITIALIZER;
+
/* Call this after arguments have been parsed to initialize the
library. */
void
@@ -50,6 +58,8 @@ diskfs_init_diskfs (void)
assert (diskfs_host_priv != MACH_PORT_NULL); /* XXX */
assert (diskfs_master_device != MACH_PORT_NULL); /* XXX */
+ ports_wire_threads = diskfs_host_priv;
+
diskfs_control_port =
((struct port_info *)ports_allocate_port(sizeof (struct port_info),
PT_CTL))->port;