]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kern/startup.c
xnu-4570.71.2.tar.gz
[apple/xnu.git] / osfmk / kern / startup.c
index c76524bac980947b5e377833e5e90b99279b37e8..c9cfd5167356d5a3f007e7b60ce31dbcf598c865 100644 (file)
 #include <kern/waitq.h>
 #include <ipc/ipc_voucher.h>
 #include <voucher/ipc_pthread_priority_internal.h>
+#include <mach/host_info.h>
 
 
 #if CONFIG_ATM
@@ -202,6 +203,7 @@ unsigned int new_nkdbufs = 0;
 unsigned int wake_nkdbufs = 0;
 unsigned int write_trace_on_panic = 0;
 static char trace_typefilter[64] = { 0 };
+unsigned int trace_wrap = 0;
 boolean_t trace_serial = FALSE;
 boolean_t early_boot_complete = FALSE;
 
@@ -264,6 +266,7 @@ kernel_bootstrap(void)
        PE_parse_boot_argn("trace_wake", &wake_nkdbufs, sizeof (wake_nkdbufs));
        PE_parse_boot_argn("trace_panic", &write_trace_on_panic, sizeof(write_trace_on_panic));
        PE_parse_boot_arg_str("trace_typefilter", trace_typefilter, sizeof(trace_typefilter));
+       PE_parse_boot_argn("trace_wrap", &trace_wrap, sizeof(trace_wrap));
 
        scale_setup();
 
@@ -380,6 +383,9 @@ kernel_bootstrap(void)
        /* initialize the corpse config based on boot-args */
        corpses_init();
 
+       /* initialize host_statistics */
+       host_statistics_init();
+
        /*
         *      Create a kernel thread to execute the kernel bootstrap.
         */
@@ -526,7 +532,7 @@ kernel_bootstrap_thread(void)
        kernel_bootstrap_thread_log("ktrace_init");
        ktrace_init();
 
-       kdebug_init(new_nkdbufs, trace_typefilter);
+       kdebug_init(new_nkdbufs, trace_typefilter, trace_wrap);
 
        kernel_bootstrap_log("prng_init");
        prng_cpu_init(master_cpu);
@@ -622,6 +628,7 @@ kernel_bootstrap_thread(void)
 
 
 
+
        /*
         *      Start the user bootstrap.
         */