]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/kern/bsd_init.c
xnu-1228.5.20.tar.gz
[apple/xnu.git] / bsd / kern / bsd_init.c
index 2ea3d6377226591794b60cfaf3087f4332696e42..50d955a3f7ac1729f9944d8da9f7cdc069a40e0c 100644 (file)
@@ -223,7 +223,7 @@ struct      vnode *rootvp;
 int boothowto = RB_DEBUG;
 
 void lightning_bolt(void *);
-extern kern_return_t IOFindBSDRoot(char *, dev_t *, u_int32_t *);
+extern kern_return_t IOFindBSDRoot(char *, unsigned int, dev_t *, u_int32_t *);
 extern void IOSecureBSDRoot(const char * rootName);
 extern kern_return_t IOKitBSDInit(void );
 extern void kminit(void);
@@ -569,6 +569,7 @@ bsd_init(void)
        /*
         * Initialize the calendar.
         */
+       bsd_init_kprintf("calling IOKitInitializeTime\n");
        IOKitInitializeTime();
 
        if (turn_on_log_leaks && !new_nkdbufs)
@@ -961,7 +962,7 @@ setconf(void)
         * which needs to be under network funnel. Right thing to do
         * here is to drop the funnel alltogether and regrab it afterwards
         */
-       err = IOFindBSDRoot( rootdevice, &rootdev, &flags );
+       err = IOFindBSDRoot(rootdevice, sizeof(rootdevice), &rootdev, &flags);
        if( err) {
                printf("setconf: IOFindBSDRoot returned an error (%d);"
                        "setting rootdevice to 'sd0a'.\n", err); /* XXX DEBUG TEMP */
@@ -1031,7 +1032,9 @@ parse_bsd_args(void)
        if (PE_parse_boot_arg("nbuf", &max_nbuf_headers)) {
                customnbuf = 1;
        }
+#if !defined(SECURE_KERNEL)
        PE_parse_boot_arg("kmem", &setup_kmem);
+#endif
        PE_parse_boot_arg("trace", &new_nkdbufs);
 
        if (PE_parse_boot_arg("msgbuf", &msgbuf)) {