svn commit: r202541 - user/kmacy/releng_8_rump/lib/libunet/test

Kip Macy kmacy at FreeBSD.org
Mon Jan 18 01:56:41 UTC 2010


Author: kmacy
Date: Mon Jan 18 01:56:40 2010
New Revision: 202541
URL: http://svn.freebsd.org/changeset/base/202541

Log:
  add test program for testing SYSINIT (bootstrap)

Added:
  user/kmacy/releng_8_rump/lib/libunet/test/
  user/kmacy/releng_8_rump/lib/libunet/test/init.c   (contents, props changed)

Added: user/kmacy/releng_8_rump/lib/libunet/test/init.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ user/kmacy/releng_8_rump/lib/libunet/test/init.c	Mon Jan 18 01:56:40 2010	(r202541)
@@ -0,0 +1,24 @@
+#include <sys/cdefs.h>
+#include <sys/param.h>
+#include <stdlib.h>
+
+extern void mi_startup(void);
+extern void uma_startup(void *, int);
+caddr_t kern_timeout_callwheel_alloc(caddr_t v);
+void kern_timeout_callwheel_init(void);
+extern int ncallout;
+
+
+int
+main(void)
+{
+	/* vm_init bits */
+	ncallout = 64;
+	kern_timeout_callwheel_alloc(malloc(512*1024));
+	kern_timeout_callwheel_init();
+	uma_startup(NULL, 0);
+
+
+	mi_startup();
+
+}


More information about the svn-src-user mailing list