Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jan 2010 01:56:40 +0000 (UTC)
From:      Kip Macy <kmacy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r202541 - user/kmacy/releng_8_rump/lib/libunet/test
Message-ID:  <201001180156.o0I1ue9X012523@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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();
+
+}



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