Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/mips fix CPU_ROOT_DEVICE implementation.
details: https://anonhg.NetBSD.org/src/rev/6456c7aff9ef
branches: trunk
changeset: 534907:6456c7aff9ef
user: shin <shin%NetBSD.org@localhost>
date: Tue Aug 06 06:54:36 2002 +0000
description:
fix CPU_ROOT_DEVICE implementation.
diffstat:
sys/arch/mips/mips/mips_machdep.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (35 lines):
diff -r e024f5883c08 -r 6456c7aff9ef sys/arch/mips/mips/mips_machdep.c
--- a/sys/arch/mips/mips/mips_machdep.c Tue Aug 06 06:52:49 2002 +0000
+++ b/sys/arch/mips/mips/mips_machdep.c Tue Aug 06 06:54:36 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mips_machdep.c,v 1.144 2002/08/05 13:02:40 shin Exp $ */
+/* $NetBSD: mips_machdep.c,v 1.145 2002/08/06 06:54:36 shin Exp $ */
/*
* Copyright 2002 Wasabi Systems, Inc.
@@ -120,7 +120,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.144 2002/08/05 13:02:40 shin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.145 2002/08/06 06:54:36 shin Exp $");
#include "opt_cputype.h"
#include "opt_compat_netbsd.h"
@@ -141,6 +141,7 @@
#include <sys/user.h>
#include <sys/msgbuf.h>
#include <sys/conf.h>
+#include <sys/device.h>
#include <sys/core.h>
#include <sys/kcore.h>
#include <machine/kcore.h>
@@ -1134,6 +1135,8 @@
case CPU_LLSC:
return (sysctl_rdint(oldp, oldlenp, newp, MIPS_HAS_LLSC));
case CPU_ROOT_DEVICE:
+ return (sysctl_rdstring(oldp, oldlenp, newp,
+ root_device->dv_xname));
default:
return (EOPNOTSUPP);
}
Home |
Main Index |
Thread Index |
Old Index