Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/acorn32/acorn32 Initial `machdep.booted_kernel' sup...
details: https://anonhg.NetBSD.org/src/rev/1e2902d67365
branches: trunk
changeset: 521517:1e2902d67365
user: reinoud <reinoud%NetBSD.org@localhost>
date: Thu Jan 31 21:01:40 2002 +0000
description:
Initial `machdep.booted_kernel' support as a string flag on the boot
arguments since otherwise RiscOS file names must be parsed.
diffstat:
sys/arch/acorn32/acorn32/rpc_machdep.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diffs (40 lines):
diff -r 1cc08ce582bb -r 1e2902d67365 sys/arch/acorn32/acorn32/rpc_machdep.c
--- a/sys/arch/acorn32/acorn32/rpc_machdep.c Thu Jan 31 21:01:15 2002 +0000
+++ b/sys/arch/acorn32/acorn32/rpc_machdep.c Thu Jan 31 21:01:40 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rpc_machdep.c,v 1.10 2002/01/25 19:19:22 thorpej Exp $ */
+/* $NetBSD: rpc_machdep.c,v 1.11 2002/01/31 21:01:40 reinoud Exp $ */
/*
* Copyright (c) 2000-2001 Reinoud Zandijk.
@@ -120,7 +120,7 @@
videomemory_t videomemory; /* Video memory descriptor */
char *boot_args = NULL;
-char *boot_file = NULL;
+char booted_kernel[80];
extern int *vidc_base;
extern u_int32_t iomd_base;
@@ -1004,6 +1004,7 @@
char *args;
{
int integer;
+ char *kernel_name;
if (get_bootconf_option(args, "videodram", BOOTOPT_TYPE_INT, &integer)) {
videodram_size = integer;
@@ -1014,6 +1015,13 @@
videodram_size = 1024*1024;
};
+ if (get_bootconf_option(args, "booted_kernel", BOOTOPT_TYPE_STRING, &kernel_name)) {
+ strncpy(booted_kernel, kernel_name, 80); /* XXX 80 ? */
+ } else {
+ /* no booted kernel name */
+ strcpy(booted_kernel, "");
+ };
+
#if 0
/* XXX this I would rather have in the new bootconfig structure */
if (get_bootconf_option(args, "kinetic", BOOTOPT_TYPE_BOOLEAN, &integer)) {
Home |
Main Index |
Thread Index |
Old Index