diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-04-09 16:58:12 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-04-09 16:58:12 +0000 |
commit | 92f5c0454663a139d99ea5e02df8508142157fa5 (patch) | |
tree | 4ba5b4fe5d087a1ac8fc9184a3d173a5f4165194 /sys/arch | |
parent | 139ee566aed85a28300e981896257cc93cbd18b6 (diff) |
Add new stub uvm_shutdown() and call it from the right place in MD boot()
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/alpha/alpha/machdep.c | 6 | ||||
-rw-r--r-- | sys/arch/amd64/amd64/machdep.c | 6 | ||||
-rw-r--r-- | sys/arch/aviion/aviion/machdep.c | 8 | ||||
-rw-r--r-- | sys/arch/hp300/hp300/machdep.c | 6 | ||||
-rw-r--r-- | sys/arch/hppa/hppa/machdep.c | 3 | ||||
-rw-r--r-- | sys/arch/hppa64/hppa64/machdep.c | 3 | ||||
-rw-r--r-- | sys/arch/i386/i386/machdep.c | 6 | ||||
-rw-r--r-- | sys/arch/landisk/landisk/machdep.c | 6 | ||||
-rw-r--r-- | sys/arch/luna88k/luna88k/machdep.c | 6 | ||||
-rw-r--r-- | sys/arch/mac68k/mac68k/machdep.c | 6 | ||||
-rw-r--r-- | sys/arch/macppc/macppc/machdep.c | 4 | ||||
-rw-r--r-- | sys/arch/mvme68k/mvme68k/machdep.c | 6 | ||||
-rw-r--r-- | sys/arch/mvme88k/mvme88k/machdep.c | 6 | ||||
-rw-r--r-- | sys/arch/mvmeppc/mvmeppc/machdep.c | 4 | ||||
-rw-r--r-- | sys/arch/sgi/sgi/machdep.c | 3 | ||||
-rw-r--r-- | sys/arch/solbourne/solbourne/machdep.c | 4 | ||||
-rw-r--r-- | sys/arch/sparc/sparc/machdep.c | 4 | ||||
-rw-r--r-- | sys/arch/sparc64/sparc64/machdep.c | 4 | ||||
-rw-r--r-- | sys/arch/vax/vax/machdep.c | 4 |
19 files changed, 55 insertions, 40 deletions
diff --git a/sys/arch/alpha/alpha/machdep.c b/sys/arch/alpha/alpha/machdep.c index 4f7836c9de1..c5e85fb41dd 100644 --- a/sys/arch/alpha/alpha/machdep.c +++ b/sys/arch/alpha/alpha/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.113 2007/10/10 15:53:51 art Exp $ */ +/* $OpenBSD: machdep.c,v 1.114 2008/04/09 16:58:10 deraadt Exp $ */ /* $NetBSD: machdep.c,v 1.210 2000/06/01 17:12:38 thorpej Exp $ */ /*- @@ -1066,8 +1066,8 @@ boot(howto) } } - /* Disable interrupts. */ - splhigh(); + uvm_shutdown(); + splhigh(); /* Disable interrupts. */ /* If rebooting and a dump is requested do it. */ if (howto & RB_DUMP) diff --git a/sys/arch/amd64/amd64/machdep.c b/sys/arch/amd64/amd64/machdep.c index da8b0b29c99..c190adb165f 100644 --- a/sys/arch/amd64/amd64/machdep.c +++ b/sys/arch/amd64/amd64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.69 2008/03/29 15:26:47 krw Exp $ */ +/* $OpenBSD: machdep.c,v 1.70 2008/04/09 16:58:10 deraadt Exp $ */ /* $NetBSD: machdep.c,v 1.3 2003/05/07 22:58:18 fvdl Exp $ */ /*- @@ -774,8 +774,8 @@ boot(int howto) delay(4*1000000); /* XXX */ - /* Disable interrupts. */ - splhigh(); + uvm_shutdown(); + splhigh(); /* Disable interrupts. */ /* Do a dump if requested. */ if (howto & RB_DUMP) diff --git a/sys/arch/aviion/aviion/machdep.c b/sys/arch/aviion/aviion/machdep.c index f38dfb87ea5..b48219c384d 100644 --- a/sys/arch/aviion/aviion/machdep.c +++ b/sys/arch/aviion/aviion/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.23 2008/01/23 16:37:58 jsing Exp $ */ +/* $OpenBSD: machdep.c,v 1.24 2008/04/09 16:58:10 deraadt Exp $ */ /* * Copyright (c) 2007 Miodrag Vallat. * @@ -14,7 +14,7 @@ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -/* $OpenBSD: machdep.c,v 1.23 2008/01/23 16:37:58 jsing Exp $ */ +/* $OpenBSD: machdep.c,v 1.24 2008/04/09 16:58:10 deraadt Exp $ */ /* * Copyright (c) 1998, 1999, 2000, 2001 Steve Murphree, Jr. * Copyright (c) 1996 Nivas Madhur @@ -399,8 +399,8 @@ boot(howto) printf("WARNING: not updating battery clock\n"); } - /* Disable interrupts. */ - splhigh(); + uvm_shutdown(); + splhigh(); /* Disable interrupts. */ /* If rebooting and a dump is requested, do it. */ if (howto & RB_DUMP) diff --git a/sys/arch/hp300/hp300/machdep.c b/sys/arch/hp300/hp300/machdep.c index f994edf2f93..6d269ebe747 100644 --- a/sys/arch/hp300/hp300/machdep.c +++ b/sys/arch/hp300/hp300/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.117 2008/01/04 19:10:31 miod Exp $ */ +/* $OpenBSD: machdep.c,v 1.118 2008/04/09 16:58:10 deraadt Exp $ */ /* $NetBSD: machdep.c,v 1.121 1999/03/26 23:41:29 mycroft Exp $ */ /* @@ -678,8 +678,8 @@ boot(howto) } } - /* Disable interrupts. */ - splhigh(); + uvm_shutdown(); + splhigh(); /* Disable interrupts. */ /* If rebooting and a dump is requested do it. */ if (howto & RB_DUMP) diff --git a/sys/arch/hppa/hppa/machdep.c b/sys/arch/hppa/hppa/machdep.c index 730635d052e..10d258d8de6 100644 --- a/sys/arch/hppa/hppa/machdep.c +++ b/sys/arch/hppa/hppa/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.165 2007/09/22 09:57:40 martin Exp $ */ +/* $OpenBSD: machdep.c,v 1.166 2008/04/09 16:58:10 deraadt Exp $ */ /* * Copyright (c) 1999-2003 Michael Shalayeff @@ -918,6 +918,7 @@ boot(howto) /* XXX probably save howto into stable storage */ + uvm_shutdown(); splhigh(); if (howto & RB_DUMP) diff --git a/sys/arch/hppa64/hppa64/machdep.c b/sys/arch/hppa64/hppa64/machdep.c index 1f5d478681b..f3472dfd7d1 100644 --- a/sys/arch/hppa64/hppa64/machdep.c +++ b/sys/arch/hppa64/hppa64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.7 2007/06/06 17:15:12 deraadt Exp $ */ +/* $OpenBSD: machdep.c,v 1.8 2008/04/09 16:58:10 deraadt Exp $ */ /* * Copyright (c) 2005 Michael Shalayeff @@ -645,6 +645,7 @@ boot(howto) /* XXX probably save howto into stable storage */ + uvm_shutdown(); splhigh(); if (howto & RB_DUMP) diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c index c1bc2bb62ef..bcf7ce29dd4 100644 --- a/sys/arch/i386/i386/machdep.c +++ b/sys/arch/i386/i386/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.420 2008/03/30 14:09:20 krw Exp $ */ +/* $OpenBSD: machdep.c,v 1.421 2008/04/09 16:58:10 deraadt Exp $ */ /* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */ /*- @@ -2395,8 +2395,8 @@ boot(int howto) delay(4*1000000); /* XXX */ - /* Disable interrupts. */ - splhigh(); + uvm_shutdown(); + splhigh(); /* Disable interrupts. */ /* Do a dump if requested. */ if (howto & RB_DUMP) diff --git a/sys/arch/landisk/landisk/machdep.c b/sys/arch/landisk/landisk/machdep.c index b5a03b19cc0..57b9de50658 100644 --- a/sys/arch/landisk/landisk/machdep.c +++ b/sys/arch/landisk/landisk/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.14 2008/03/23 17:05:41 deraadt Exp $ */ +/* $OpenBSD: machdep.c,v 1.15 2008/04/09 16:58:10 deraadt Exp $ */ /* $NetBSD: machdep.c,v 1.1 2006/09/01 21:26:18 uwe Exp $ */ /*- @@ -210,8 +210,8 @@ boot(int howto) printf("WARNING: not updating battery clock\n"); } - /* Disable interrupts. */ - splhigh(); + uvm_shutdown(); + splhigh(); /* Disable interrupts. */ /* Do a dump if requested. */ if (howto & RB_DUMP) diff --git a/sys/arch/luna88k/luna88k/machdep.c b/sys/arch/luna88k/luna88k/machdep.c index bb6b17b149f..b25ca970134 100644 --- a/sys/arch/luna88k/luna88k/machdep.c +++ b/sys/arch/luna88k/luna88k/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.56 2008/01/23 16:37:56 jsing Exp $ */ +/* $OpenBSD: machdep.c,v 1.57 2008/04/09 16:58:10 deraadt Exp $ */ /* * Copyright (c) 1998, 1999, 2000, 2001 Steve Murphree, Jr. * Copyright (c) 1996 Nivas Madhur @@ -569,8 +569,8 @@ boot(howto) printf("WARNING: not updating battery clock\n"); } - /* Disable interrupts. */ - splhigh(); + uvm_shutdown(); + splhigh(); /* Disable interrupts. */ /* If rebooting and a dump is requested, do it. */ if (howto & RB_DUMP) diff --git a/sys/arch/mac68k/mac68k/machdep.c b/sys/arch/mac68k/mac68k/machdep.c index d45ebd3cefe..adcc0f614a8 100644 --- a/sys/arch/mac68k/mac68k/machdep.c +++ b/sys/arch/mac68k/mac68k/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.143 2007/11/02 19:18:54 martin Exp $ */ +/* $OpenBSD: machdep.c,v 1.144 2008/04/09 16:58:10 deraadt Exp $ */ /* $NetBSD: machdep.c,v 1.207 1998/07/08 04:39:34 thorpej Exp $ */ /* @@ -574,8 +574,8 @@ boot(howto) } } - /* Disable interrupts. */ - splhigh(); + uvm_shutdown(); + splhigh(); /* Disable interrupts. */ /* If rebooting and a dump is requested, do it. */ if (howto & RB_DUMP) { diff --git a/sys/arch/macppc/macppc/machdep.c b/sys/arch/macppc/macppc/machdep.c index 59fb7d45616..21e03c7cfbf 100644 --- a/sys/arch/macppc/macppc/machdep.c +++ b/sys/arch/macppc/macppc/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.95 2008/03/23 17:05:41 deraadt Exp $ */ +/* $OpenBSD: machdep.c,v 1.96 2008/04/09 16:58:10 deraadt Exp $ */ /* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */ /* @@ -931,6 +931,8 @@ boot(int howto) printf("WARNING: not updating battery clock\n"); } } + + uvm_shutdown(); splhigh(); if (howto & RB_HALT) { doshutdownhooks(); diff --git a/sys/arch/mvme68k/mvme68k/machdep.c b/sys/arch/mvme68k/mvme68k/machdep.c index cffa80442df..044d9b0138c 100644 --- a/sys/arch/mvme68k/mvme68k/machdep.c +++ b/sys/arch/mvme68k/mvme68k/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.108 2007/11/09 17:30:55 miod Exp $ */ +/* $OpenBSD: machdep.c,v 1.109 2008/04/09 16:58:10 deraadt Exp $ */ /* * Copyright (c) 1995 Theo de Raadt @@ -525,8 +525,8 @@ boot(howto) } } - /* Disable interrupts. */ - splhigh(); + uvm_shutdown(); + splhigh(); /* Disable interrupts. */ /* If rebooting and a dump is requested, do it. */ if (howto & RB_DUMP) diff --git a/sys/arch/mvme88k/mvme88k/machdep.c b/sys/arch/mvme88k/mvme88k/machdep.c index ea7cd4553fa..f990f53ca14 100644 --- a/sys/arch/mvme88k/mvme88k/machdep.c +++ b/sys/arch/mvme88k/mvme88k/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.210 2008/01/23 16:37:57 jsing Exp $ */ +/* $OpenBSD: machdep.c,v 1.211 2008/04/09 16:58:10 deraadt Exp $ */ /* * Copyright (c) 1998, 1999, 2000, 2001 Steve Murphree, Jr. * Copyright (c) 1996 Nivas Madhur @@ -493,8 +493,8 @@ boot(howto) printf("WARNING: not updating battery clock\n"); } - /* Disable interrupts. */ - splhigh(); + uvm_shutdown(); + splhigh(); /* Disable interrupts. */ /* If rebooting and a dump is requested, do it. */ if (howto & RB_DUMP) diff --git a/sys/arch/mvmeppc/mvmeppc/machdep.c b/sys/arch/mvmeppc/mvmeppc/machdep.c index 98a3a32b27c..ba2f1a3ae1d 100644 --- a/sys/arch/mvmeppc/mvmeppc/machdep.c +++ b/sys/arch/mvmeppc/mvmeppc/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.55 2008/01/23 16:37:57 jsing Exp $ */ +/* $OpenBSD: machdep.c,v 1.56 2008/04/09 16:58:10 deraadt Exp $ */ /* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */ /* @@ -698,6 +698,8 @@ boot(howto) printf("WARNING: not updating battery clock\n"); } } + + uvm_shutdown(); splhigh(); if (howto & RB_HALT) { doshutdownhooks(); diff --git a/sys/arch/sgi/sgi/machdep.c b/sys/arch/sgi/sgi/machdep.c index 97456d46ccf..461c2360ea9 100644 --- a/sys/arch/sgi/sgi/machdep.c +++ b/sys/arch/sgi/sgi/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.56 2008/04/07 22:32:46 miod Exp $ */ +/* $OpenBSD: machdep.c,v 1.57 2008/04/09 16:58:10 deraadt Exp $ */ /* * Copyright (c) 2003-2004 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -802,6 +802,7 @@ boot(int howto) } } + uvm_shutdown(); (void) splhigh(); /* Extreme priority. */ if (howto & RB_DUMP) diff --git a/sys/arch/solbourne/solbourne/machdep.c b/sys/arch/solbourne/solbourne/machdep.c index 9b5701bbb33..e1a9b85c0cf 100644 --- a/sys/arch/solbourne/solbourne/machdep.c +++ b/sys/arch/solbourne/solbourne/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.5 2008/01/23 16:37:57 jsing Exp $ */ +/* $OpenBSD: machdep.c,v 1.6 2008/04/09 16:58:10 deraadt Exp $ */ /* OpenBSD: machdep.c,v 1.105 2005/04/11 15:13:01 deraadt Exp */ /* @@ -646,6 +646,8 @@ boot(howto) printf("WARNING: not updating battery clock\n"); } } + + uvm_shutdown(); (void) splhigh(); /* ??? */ if (howto & RB_DUMP) diff --git a/sys/arch/sparc/sparc/machdep.c b/sys/arch/sparc/sparc/machdep.c index 2a5c1a48419..f80420fbcc7 100644 --- a/sys/arch/sparc/sparc/machdep.c +++ b/sys/arch/sparc/sparc/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.114 2007/11/28 16:33:20 martin Exp $ */ +/* $OpenBSD: machdep.c,v 1.115 2008/04/09 16:58:10 deraadt Exp $ */ /* $NetBSD: machdep.c,v 1.85 1997/09/12 08:55:02 pk Exp $ */ /* @@ -675,6 +675,8 @@ boot(howto) printf("WARNING: not updating battery clock\n"); } } + + uvm_shutdown(); (void) splhigh(); /* ??? */ if (howto & RB_DUMP) diff --git a/sys/arch/sparc64/sparc64/machdep.c b/sys/arch/sparc64/sparc64/machdep.c index b0623d98bc2..d1eac95388d 100644 --- a/sys/arch/sparc64/sparc64/machdep.c +++ b/sys/arch/sparc64/sparc64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.106 2008/03/22 21:10:29 kettenis Exp $ */ +/* $OpenBSD: machdep.c,v 1.107 2008/04/09 16:58:10 deraadt Exp $ */ /* $NetBSD: machdep.c,v 1.108 2001/07/24 19:30:14 eeh Exp $ */ /*- @@ -727,6 +727,8 @@ boot(howto) printf("WARNING: not updating battery clock\n"); } } + + uvm_shutdown(); (void) splhigh(); /* ??? */ /* If rebooting and a dump is requested, do it. */ diff --git a/sys/arch/vax/vax/machdep.c b/sys/arch/vax/vax/machdep.c index b76940a2a67..3a15cf08033 100644 --- a/sys/arch/vax/vax/machdep.c +++ b/sys/arch/vax/vax/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.94 2008/02/16 22:59:34 miod Exp $ */ +/* $OpenBSD: machdep.c,v 1.95 2008/04/09 16:58:10 deraadt Exp $ */ /* $NetBSD: machdep.c,v 1.108 2000/09/13 15:00:23 thorpej Exp $ */ /* @@ -530,6 +530,8 @@ boot(howto) */ resettodr(); } + + uvm_shutdown(); splhigh(); /* extreme priority */ /* If rebooting and a dump is requested, do it. */ |