Module Name: src
Committed By: tsutsui
Date: Tue Jul 21 15:10:39 UTC 2009
Modified Files:
src/sys/arch/pmax/pmax: machdep.c
Log Message:
No need to clear BSS in kernel itself if there is valid bootinfo,
i.e. it's loaded by our native bootloader.
To generate a diff of this commit:
cvs rdiff -u -r1.233 -r1.234 src/sys/arch/pmax/pmax/machdep.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/pmax/pmax/machdep.c
diff -u src/sys/arch/pmax/pmax/machdep.c:1.233 src/sys/arch/pmax/pmax/machdep.c:1.234
--- src/sys/arch/pmax/pmax/machdep.c:1.233 Tue Jul 21 14:26:48 2009
+++ src/sys/arch/pmax/pmax/machdep.c Tue Jul 21 15:10:39 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.233 2009/07/21 14:26:48 tsutsui Exp $ */
+/* $NetBSD: machdep.c,v 1.234 2009/07/21 15:10:39 tsutsui Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -77,7 +77,7 @@
*/
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.233 2009/07/21 14:26:48 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.234 2009/07/21 15:10:39 tsutsui Exp $");
#include "fs_mfs.h"
#include "opt_ddb.h"
@@ -230,7 +230,9 @@
ssym = (void *)bi_syms->ssym;
esym = (void *)bi_syms->esym;
kernend = (void *)mips_round_page(esym);
+#if 0 /* our bootloader clears BSS properly */
memset(edata, 0, end - edata);
+#endif
} else
#ifdef EXEC_AOUT
/* XXX: Backwards compatibility with old bootblocks - this should