summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorart <art@openbsd.org>2002-06-08 05:19:12 +0000
committerart <art@openbsd.org>2002-06-08 05:19:12 +0000
commit16160eb9f91396e1dadfe6ff15023b9a008040c5 (patch)
treed654082ffddff633ff2190575ad00d1ccd9c6aef
parentdeprecate FallBackToRsh and UseRsh; patch from djm@ (diff)
downloadwireguard-openbsd-16160eb9f91396e1dadfe6ff15023b9a008040c5.tar.xz
wireguard-openbsd-16160eb9f91396e1dadfe6ff15023b9a008040c5.zip
Always keep the symbols, don't hand that memory to the VM system.
In most cases we'll have either DDB or /dev/ksyms and if someone really needs the memory they'll strip the kernel. Fixes alpha/2705.
-rw-r--r--sys/arch/alpha/alpha/machdep.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/arch/alpha/alpha/machdep.c b/sys/arch/alpha/alpha/machdep.c
index 13dcbc7c8bd..1d7b9761bf3 100644
--- a/sys/arch/alpha/alpha/machdep.c
+++ b/sys/arch/alpha/alpha/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.73 2002/06/04 00:09:08 deraadt Exp $ */
+/* $OpenBSD: machdep.c,v 1.74 2002/06/08 05:19:12 art Exp $ */
/* $NetBSD: machdep.c,v 1.210 2000/06/01 17:12:38 thorpej Exp $ */
/*-
@@ -428,11 +428,7 @@ nobootinfo:
* stack).
*/
kernstart = trunc_page((vaddr_t)kernel_text) - 2 * PAGE_SIZE;
-#ifdef DDB
kernend = (vaddr_t)round_page((vaddr_t)bootinfo.esym);
-#else
- kernend = (vaddr_t)round_page((vaddr_t)_end);
-#endif
kernstartpfn = atop(ALPHA_K0SEG_TO_PHYS(kernstart));
kernendpfn = atop(ALPHA_K0SEG_TO_PHYS(kernend));