From ecef4fca4d326e2aa48f9f952345c5a0f85602c9 Mon Sep 17 00:00:00 2001 From: deraadt Date: Sun, 17 Apr 1994 11:37:46 +0000 Subject: [PATCH] call swapconf(): it's not just a good idea, it's the law! --- sys/arch/sparc/sparc/autoconf.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sys/arch/sparc/sparc/autoconf.c b/sys/arch/sparc/sparc/autoconf.c index 8d72ac71ccdc..ebd06f79a442 100644 --- a/sys/arch/sparc/sparc/autoconf.c +++ b/sys/arch/sparc/sparc/autoconf.c @@ -42,7 +42,7 @@ * @(#)autoconf.c 8.1 (Berkeley) 6/11/93 * * from: Header: autoconf.c,v 1.32 93/05/28 03:55:59 torek Exp (LBL) - * $Id: autoconf.c,v 1.8 1994/03/20 09:01:09 pk Exp $ + * $Id: autoconf.c,v 1.9 1994/04/17 11:37:46 deraadt Exp $ */ #include @@ -294,6 +294,11 @@ configure() (void)spl0(); if (bootdv) printf("Found boot device %s\n", bootdv->dv_xname); + /* + * Configure swap area and related system + * parameter based on device(s) used. + */ + swapconf(); cold = 0; } @@ -815,6 +820,7 @@ swapconf() if (nblks != -1 && (swp->sw_nblks == 0 || swp->sw_nblks > nblks)) swp->sw_nblks = nblks; + swp->sw_nblks = ctod(dtoc(swp->sw_nblks)); } }