summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/alpha/alpha/machdep.c6
-rw-r--r--sys/arch/amd64/amd64/machdep.c6
-rw-r--r--sys/arch/aviion/aviion/machdep.c8
-rw-r--r--sys/arch/hp300/hp300/machdep.c6
-rw-r--r--sys/arch/hppa/hppa/machdep.c3
-rw-r--r--sys/arch/hppa64/hppa64/machdep.c3
-rw-r--r--sys/arch/i386/i386/machdep.c6
-rw-r--r--sys/arch/landisk/landisk/machdep.c6
-rw-r--r--sys/arch/luna88k/luna88k/machdep.c6
-rw-r--r--sys/arch/mac68k/mac68k/machdep.c6
-rw-r--r--sys/arch/macppc/macppc/machdep.c4
-rw-r--r--sys/arch/mvme68k/mvme68k/machdep.c6
-rw-r--r--sys/arch/mvme88k/mvme88k/machdep.c6
-rw-r--r--sys/arch/mvmeppc/mvmeppc/machdep.c4
-rw-r--r--sys/arch/sgi/sgi/machdep.c3
-rw-r--r--sys/arch/solbourne/solbourne/machdep.c4
-rw-r--r--sys/arch/sparc/sparc/machdep.c4
-rw-r--r--sys/arch/sparc64/sparc64/machdep.c4
-rw-r--r--sys/arch/vax/vax/machdep.c4
-rw-r--r--sys/uvm/uvm_extern.h3
-rw-r--r--sys/uvm/uvm_page.c7
21 files changed, 63 insertions, 42 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. */
diff --git a/sys/uvm/uvm_extern.h b/sys/uvm/uvm_extern.h
index 05328406d93..406a2a0391c 100644
--- a/sys/uvm/uvm_extern.h
+++ b/sys/uvm/uvm_extern.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_extern.h,v 1.68 2007/11/29 00:26:41 tedu Exp $ */
+/* $OpenBSD: uvm_extern.h,v 1.69 2008/04/09 16:58:11 deraadt Exp $ */
/* $NetBSD: uvm_extern.h,v 1.57 2001/03/09 01:02:12 chs Exp $ */
/*
@@ -555,6 +555,7 @@ void uvm_pagerealloc(struct vm_page *,
void uvm_page_physload(paddr_t, paddr_t,
paddr_t, paddr_t, int);
void uvm_setpagesize(void);
+void uvm_shutdown(void);
/* uvm_pager.c */
void uvm_aio_biodone1(struct buf *);
diff --git a/sys/uvm/uvm_page.c b/sys/uvm/uvm_page.c
index 8dc2ba1ee78..0c401692408 100644
--- a/sys/uvm/uvm_page.c
+++ b/sys/uvm/uvm_page.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_page.c,v 1.64 2008/01/04 19:26:52 miod Exp $ */
+/* $OpenBSD: uvm_page.c,v 1.65 2008/04/09 16:58:11 deraadt Exp $ */
/* $NetBSD: uvm_page.c,v 1.44 2000/11/27 08:40:04 chs Exp $ */
/*
@@ -879,6 +879,11 @@ uvm_page_physdump()
}
#endif
+void
+uvm_shutdown(void)
+{
+}
+
/*
* uvm_pagealloc_strat: allocate vm_page from a particular free list.
*