Initial revision
authorroland <roland>
Fri, 18 Oct 1991 04:55:45 +0000 (04:55 +0000)
committerroland <roland>
Fri, 18 Oct 1991 04:55:45 +0000 (04:55 +0000)
mach/mach_init.c [new file with mode: 0644]

diff --git a/mach/mach_init.c b/mach/mach_init.c
new file mode 100644 (file)
index 0000000..099f598
--- /dev/null
@@ -0,0 +1,20 @@
+#include <mach_init.h>
+
+extern void __mig_init (int);
+
+mach_port_t __mach_task_self_;
+vm_size_t __vm_page_size;
+
+void
+__mach_init (void)
+{
+  error_t err;
+  vm_statistics_data_t stats;
+
+  __mach_task_self_ = (__mach_task_self) ();
+  __mig_init (0);
+
+  if (err = __vm_statistics (__mach_task_self (), &stats))
+    _exit (err);
+  __vm_page_size = stats.pagesize;
+}