summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/sparc64/machdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/sparc64/sparc64/machdep.c')
-rw-r--r--sys/arch/sparc64/sparc64/machdep.c31
1 files changed, 1 insertions, 30 deletions
diff --git a/sys/arch/sparc64/sparc64/machdep.c b/sys/arch/sparc64/sparc64/machdep.c
index 096204a7852..ef2c29b4f51 100644
--- a/sys/arch/sparc64/sparc64/machdep.c
+++ b/sys/arch/sparc64/sparc64/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.77 2005/10/24 19:07:40 martin Exp $ */
+/* $OpenBSD: machdep.c,v 1.78 2005/11/11 16:50:21 miod Exp $ */
/* $NetBSD: machdep.c,v 1.108 2001/07/24 19:30:14 eeh Exp $ */
/*-
@@ -511,41 +511,12 @@ cpu_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
struct proc *p;
{
int oldval, ret;
- u_int chosen;
- char bootargs[256];
- char *cp = NULL;
/* all sysctl names are this level are terminal */
if (namelen != 1)
return (ENOTDIR); /* overloaded */
switch (name[0]) {
- case CPU_BOOTED_KERNEL:
- if (((chosen = OF_finddevice("/chosen")) != -1) &&
- ((OF_getprop(chosen, "bootargs", bootargs, sizeof bootargs))
- >= 0)) {
- /*
- * bootargs is of the form: [kernelname] [args...]
- * It can be the empty string if we booted from the
- * default kernel name.
- */
- for (cp = bootargs;
- *cp && *cp != ' ' && *cp != '\t' && *cp != '\n';
- cp++);
- *cp = 0;
- /* Now we've separated the kernel name from the args */
- cp = bootargs;
- if (*cp == 0 || *cp == '-')
- /*
- * We can leave it NULL && let userland handle
- * the failure or set it to the default name,
- * `bsd'
- */
- cp = "bsd";
- }
- if (cp == NULL || cp[0] == '\0')
- return (ENOENT);
- return (sysctl_rdstring(oldp, oldlenp, newp, cp));
case CPU_LED_BLINK:
oldval = sparc_led_blink;
ret = sysctl_int(oldp, oldlenp, newp, newlen,