Call _kvm_mdopen(kd) to do machine-dependent initialization.

This commit is contained in:
gwr 1997-08-14 15:57:42 +00:00
parent 22a1d6ba8b
commit f7e570b6de
1 changed files with 11 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: kvm.c,v 1.6 1997/06/20 04:33:25 mikel Exp $ */
/* $NetBSD: kvm.c,v 1.7 1997/08/14 15:57:42 gwr Exp $ */
/*-
* Copyright (c) 1989, 1992, 1993
@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)kvm.c 8.2 (Berkeley) 2/13/94";
#else
static char rcsid[] = "$NetBSD: kvm.c,v 1.6 1997/06/20 04:33:25 mikel Exp $";
static char rcsid[] = "$NetBSD: kvm.c,v 1.7 1997/08/14 15:57:42 gwr Exp $";
#endif
#endif /* LIBC_SCCS and not lint */
@ -194,6 +194,15 @@ _kvm_open(kd, uf, mf, sf, flag, errout)
kd->vmst = 0;
kd->vm_page_buckets = 0;
/*
* Call the MD open hook. This sets:
* usrstack, min_uva, max_uva
*/
if (_kvm_mdopen(kd)) {
_kvm_err(kd, kd->program, "md init failed");
goto failed;
}
ufgiven = (uf != NULL);
if (!ufgiven)
uf = _PATH_UNIX;