Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/xen/x86 Change findroot() to cpu_bootconf() since t...
details: https://anonhg.NetBSD.org/src/rev/a7a9fb2d1768
branches: trunk
changeset: 328440:a7a9fb2d1768
user: christos <christos%NetBSD.org@localhost>
date: Thu Apr 03 15:53:05 2014 +0000
description:
Change findroot() to cpu_bootconf() since this is what it does. Remove bogus
comment.
diffstat:
sys/arch/xen/x86/autoconf.c | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
diffs (48 lines):
diff -r 225dc7429559 -r a7a9fb2d1768 sys/arch/xen/x86/autoconf.c
--- a/sys/arch/xen/x86/autoconf.c Thu Apr 03 15:39:10 2014 +0000
+++ b/sys/arch/xen/x86/autoconf.c Thu Apr 03 15:53:05 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: autoconf.c,v 1.16 2012/10/03 18:58:33 dsl Exp $ */
+/* $NetBSD: autoconf.c,v 1.17 2014/04/03 15:53:05 christos Exp $ */
/* NetBSD: autoconf.c,v 1.75 2003/12/30 12:33:22 pk Exp */
/*-
@@ -45,7 +45,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.16 2012/10/03 18:58:33 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.17 2014/04/03 15:53:05 christos Exp $");
#include "opt_xen.h"
#include "opt_compat_oldboot.h"
@@ -86,7 +86,6 @@
#include <machine/pcb.h>
#include <machine/bootinfo.h>
-static void findroot(void);
static int is_valid_disk(device_t);
struct disklist *x86_alldisks;
@@ -143,7 +142,7 @@
void
cpu_rootconf(void)
{
- findroot();
+ cpu_bootconf();
printf("boot device: %s\n",
booted_device ? device_xname(booted_device) : "<unknown>");
@@ -153,11 +152,9 @@
/*
* Attempt to find the device from which we were booted.
- * If we can do so, and not instructed not to do so,
- * change rootdev to correspond to the load device.
*/
void
-findroot(void)
+cpu_bootconf(void)
{
device_t dv;
deviter_t di;
Home |
Main Index |
Thread Index |
Old Index