call debug_init earlier. ie. before malloc is used.
This commit is contained in:
parent
2b168f8511
commit
f638ba54b7
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: init_main.c,v 1.327 2007/11/07 16:51:28 matt Exp $ */
|
||||
/* $NetBSD: init_main.c,v 1.328 2007/11/14 11:04:07 yamt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1989, 1991, 1992, 1993
|
||||
|
@ -71,7 +71,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.327 2007/11/07 16:51:28 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.328 2007/11/14 11:04:07 yamt Exp $");
|
||||
|
||||
#include "opt_ipsec.h"
|
||||
#include "opt_multiprocessor.h"
|
||||
|
@ -164,7 +164,6 @@ __KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.327 2007/11/07 16:51:28 matt Exp $")
|
|||
#ifdef KTRACE
|
||||
#include <sys/ktrace.h>
|
||||
#endif
|
||||
#include <sys/debug.h>
|
||||
#include <sys/kauth.h>
|
||||
#include <net80211/ieee80211_netbsd.h>
|
||||
|
||||
|
@ -288,10 +287,6 @@ main(void)
|
|||
|
||||
uvm_init();
|
||||
|
||||
#ifdef DEBUG
|
||||
debug_init();
|
||||
#endif
|
||||
|
||||
kmem_init();
|
||||
|
||||
/* Initialize the extent manager. */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uvm_init.c,v 1.29 2007/08/18 00:21:11 ad Exp $ */
|
||||
/* $NetBSD: uvm_init.c,v 1.30 2007/11/14 11:04:08 yamt Exp $ */
|
||||
|
||||
/*
|
||||
*
|
||||
|
@ -39,10 +39,11 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: uvm_init.c,v 1.29 2007/08/18 00:21:11 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: uvm_init.c,v 1.30 2007/11/14 11:04:08 yamt Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/debug.h>
|
||||
#include <sys/file.h>
|
||||
#include <sys/filedesc.h>
|
||||
#include <sys/resourcevar.h>
|
||||
|
@ -134,6 +135,10 @@ uvm_init(void)
|
|||
|
||||
kmeminit();
|
||||
|
||||
#ifdef DEBUG
|
||||
debug_init();
|
||||
#endif
|
||||
|
||||
/*
|
||||
* step 7: init all pagers and the pager_map.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue