Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys use #ifdef MEMORY_DISK_DYNAMIC (for consistency with the...
details: https://anonhg.NetBSD.org/src/rev/8f9c626a3ec4
branches: trunk
changeset: 518321:8f9c626a3ec4
user: lukem <lukem%NetBSD.org@localhost>
date: Wed Nov 28 05:55:34 2001 +0000
description:
use #ifdef MEMORY_DISK_DYNAMIC (for consistency with the rest of the kernel)
diffstat:
sys/arch/hpcsh/hpcsh/machdep.c | 4 ++--
sys/dev/md_root.c | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r 6bbfecbb27ed -r 8f9c626a3ec4 sys/arch/hpcsh/hpcsh/machdep.c
--- a/sys/arch/hpcsh/hpcsh/machdep.c Wed Nov 28 05:47:37 2001 +0000
+++ b/sys/arch/hpcsh/hpcsh/machdep.c Wed Nov 28 05:55:34 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.14 2001/11/28 05:47:37 lukem Exp $ */
+/* $NetBSD: machdep.c,v 1.15 2001/11/28 05:55:35 lukem Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -229,7 +229,7 @@
if (boothowto & RB_MINIROOT) {
size_t fssz;
fssz = round_page(mfs_initminiroot((void *)kernend));
-#if MEMORY_DISK_DYNAMIC
+#ifdef MEMORY_DISK_DYNAMIC
md_root_setconf((caddr_t)kernend, fssz);
#endif
kernend += fssz;
diff -r 6bbfecbb27ed -r 8f9c626a3ec4 sys/dev/md_root.c
--- a/sys/dev/md_root.c Wed Nov 28 05:47:37 2001 +0000
+++ b/sys/dev/md_root.c Wed Nov 28 05:55:34 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: md_root.c,v 1.3 2001/11/13 05:32:50 lukem Exp $ */
+/* $NetBSD: md_root.c,v 1.4 2001/11/28 05:55:34 lukem Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: md_root.c,v 1.3 2001/11/13 05:32:50 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: md_root.c,v 1.4 2001/11/28 05:55:34 lukem Exp $");
#include "opt_md.h"
#include "opt_mdsize.h"
@@ -50,7 +50,7 @@
extern int boothowto;
-#if MEMORY_DISK_DYNAMIC
+#ifdef MEMORY_DISK_DYNAMIC
size_t md_root_size;
char *md_root_image;
#else /* MEMORY_DISK_DYNAMIC */
@@ -68,7 +68,7 @@
char md_root_image[ROOTBYTES] = "|This is the root ramdisk!\n";
#endif /* MEMORY_DISK_DYNAMIC */
-#if MEMORY_DISK_DYNAMIC
+#ifdef MEMORY_DISK_DYNAMIC
void
md_root_setconf(char *addr, size_t size)
{
Home |
Main Index |
Thread Index |
Old Index