init KTRACE variables
authorMarc Teitelbaum <marc@ucbvax.Berkeley.EDU>
Tue, 2 May 1989 14:01:25 +0000 (06:01 -0800)
committerMarc Teitelbaum <marc@ucbvax.Berkeley.EDU>
Tue, 2 May 1989 14:01:25 +0000 (06:01 -0800)
SCCS-vsn: sys/kern/init_main.c 7.9

usr/src/sys/kern/init_main.c

index 57dfb1a..ada5d5c 100644 (file)
@@ -3,7 +3,7 @@
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
- *     @(#)init_main.c 7.8 (Berkeley) %G%
+ *     @(#)init_main.c 7.9 (Berkeley) %G%
  */
 
 #include "param.h"
  */
 
 #include "param.h"
@@ -88,6 +88,10 @@ main(firstaddr)
                panic("no space to craft zero'th session");
        pg->pg_session->s_count = 1;
        pg->pg_session->s_leader = 0;
                panic("no space to craft zero'th session");
        pg->pg_session->s_count = 1;
        pg->pg_session->s_leader = 0;
+#ifdef KTRACE
+       p->p_tracep = NULL;
+       p->p_traceflag = 0;
+#endif
        /*
         * These assume that the u. area is always mapped 
         * to the same virtual address. Otherwise must be
        /*
         * These assume that the u. area is always mapped 
         * to the same virtual address. Otherwise must be