Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/arm32 Update to md(4) changes: memory_disk_size...
details: https://anonhg.NetBSD.org/src/rev/b21d568a954b
branches: trunk
changeset: 526540:b21d568a954b
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Sun May 05 16:26:30 2002 +0000
description:
Update to md(4) changes: memory_disk_size is now md_root_size, and
type is size_t
diffstat:
sys/arch/arm/arm32/arm32_machdep.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diffs (37 lines):
diff -r 267b31ab1654 -r b21d568a954b sys/arch/arm/arm32/arm32_machdep.c
--- a/sys/arch/arm/arm32/arm32_machdep.c Sun May 05 16:26:17 2002 +0000
+++ b/sys/arch/arm/arm32/arm32_machdep.c Sun May 05 16:26:30 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: arm32_machdep.c,v 1.23 2002/04/10 21:45:43 thorpej Exp $ */
+/* $NetBSD: arm32_machdep.c,v 1.24 2002/05/05 16:26:30 jdolecek Exp $ */
/*
* Copyright (c) 1994-1998 Mark Brinicombe.
@@ -77,7 +77,7 @@
extern int max_processes;
#endif /* !PMAP_STATIC_L1S */
#if NMD > 0 && defined(MEMORY_DISK_HOOKS) && !defined(MEMORY_DISK_ROOT_SIZE)
-extern u_int memory_disc_size; /* Memory disc size */
+extern size_t md_root_size; /* Memory disc size */
#endif /* NMD && MEMORY_DISK_HOOKS && !MEMORY_DISK_ROOT_SIZE */
pv_addr_t kernelstack;
@@ -428,12 +428,12 @@
#if NMD > 0 && defined(MEMORY_DISK_HOOKS) && !defined(MEMORY_DISK_ROOT_SIZE)
if (get_bootconf_option(args, "memorydisc", BOOTOPT_TYPE_INT, &integer)
|| get_bootconf_option(args, "memorydisk", BOOTOPT_TYPE_INT, &integer)) {
- memory_disc_size = integer;
- memory_disc_size *= 1024;
- if (memory_disc_size < 32*1024)
- memory_disc_size = 32*1024;
- if (memory_disc_size > 2048*1024)
- memory_disc_size = 2048*1024;
+ md_root_size = integer;
+ md_root_size *= 1024;
+ if (md_root_size < 32*1024)
+ md_root_size = 32*1024;
+ if (md_root_size > 2048*1024)
+ md_root_size = 2048*1024;
}
#endif /* NMD && MEMORY_DISK_HOOKS && !MEMORY_DISK_ROOT_SIZE */
Home |
Main Index |
Thread Index |
Old Index