Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/atari/atari Use actual physmem size for allocation ...
details: https://anonhg.NetBSD.org/src/rev/327baa060065
branches: trunk
changeset: 777510:327baa060065
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Tue Feb 21 12:09:50 2012 +0000
description:
Use actual physmem size for allocation of bootstrap extra PT pages
to avoid wasting pages on low memory machines.
Improves atari specific part of PR/45915, tested on TT030.
diffstat:
sys/arch/atari/atari/atari_init.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r a0d58c18e808 -r 327baa060065 sys/arch/atari/atari/atari_init.c
--- a/sys/arch/atari/atari/atari_init.c Tue Feb 21 10:54:07 2012 +0000
+++ b/sys/arch/atari/atari/atari_init.c Tue Feb 21 12:09:50 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atari_init.c,v 1.98 2012/02/10 04:49:44 mhitch Exp $ */
+/* $NetBSD: atari_init.c,v 1.99 2012/02/21 12:09:50 tsutsui Exp $ */
/*
* Copyright (c) 1995 Leo Weppelman
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: atari_init.c,v 1.98 2012/02/10 04:49:44 mhitch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: atari_init.c,v 1.99 2012/02/21 12:09:50 tsutsui Exp $");
#include "opt_ddb.h"
#include "opt_mbtype.h"
@@ -226,6 +226,7 @@
st_pool_phys = stphysize - st_pool_size;
stphysize = st_pool_phys;
+ physmem = btoc(stphysize) + btoc(ttphysize);
machineid = id;
esym = esym_addr;
Home |
Main Index |
Thread Index |
Old Index