Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hpc/hpc We may run one page too few during reboot f...
details: https://anonhg.NetBSD.org/src/rev/8b93795320f1
branches: trunk
changeset: 559874:8b93795320f1
user: uwe <uwe%NetBSD.org@localhost>
date: Thu Mar 25 04:04:28 2004 +0000
description:
We may run one page too few during reboot for certain kernel sizes.
Allocate an extra page for the loadable segment to compensate for the
fact that the last tag may be only partially filled.
diffstat:
sys/arch/hpc/hpc/kloader.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r d7f4bc60330d -r 8b93795320f1 sys/arch/hpc/hpc/kloader.c
--- a/sys/arch/hpc/hpc/kloader.c Thu Mar 25 01:26:57 2004 +0000
+++ b/sys/arch/hpc/hpc/kloader.c Thu Mar 25 04:04:28 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kloader.c,v 1.9 2004/03/23 03:39:11 uwe Exp $ */
+/* $NetBSD: kloader.c,v 1.10 2004/03/25 04:04:28 uwe Exp $ */
/*-
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kloader.c,v 1.9 2004/03/23 03:39:11 uwe Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kloader.c,v 1.10 2004/03/25 04:04:28 uwe Exp $");
#include "debug_kloader.h"
@@ -239,6 +239,7 @@
#else
sz += round_page(ph[i].p_filesz);
#endif
+ sz += PAGE_SIZE; /* compensate for partial last tag */
}
}
Home |
Main Index |
Thread Index |
Old Index