Module Name: src Committed By: mrg Date: Tue Jun 8 06:14:58 UTC 2010
Modified Files: src/share/man/man4: ddb.4 src/sys/arch/alpha/alpha: db_interface.c Log Message: properly document alpha ddb "mach" commands. PR#38303. To generate a diff of this commit: cvs rdiff -u -r1.138 -r1.139 src/share/man/man4/ddb.4 cvs rdiff -u -r1.31 -r1.32 src/sys/arch/alpha/alpha/db_interface.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/share/man/man4/ddb.4 diff -u src/share/man/man4/ddb.4:1.138 src/share/man/man4/ddb.4:1.139 --- src/share/man/man4/ddb.4:1.138 Sun Jun 6 03:26:57 2010 +++ src/share/man/man4/ddb.4 Tue Jun 8 06:14:57 2010 @@ -1,4 +1,4 @@ -.\" $NetBSD: ddb.4,v 1.138 2010/06/06 03:26:57 mrg Exp $ +.\" $NetBSD: ddb.4,v 1.139 2010/06/08 06:14:57 mrg Exp $ .\" .\" Copyright (c) 1997 - 2009 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -921,10 +921,12 @@ Some of these commands are: .Ss ALPHA .Bl -tag -width "traptrace" -compact -.It Ic halt -Call the PROM monitor to halt the CPU. -.It Ic reboot -Call the PROM monitor to reboot the CPU. +.It Ic cpu +Switch to another cpu. +.\" .It Ic halt +.\" Call the PROM monitor to halt the CPU. +.\" .It Ic reboot +.\" Call the PROM monitor to reboot the CPU. .El .Ss ARM32 .Bl -tag -width "traptrace" -compact Index: src/sys/arch/alpha/alpha/db_interface.c diff -u src/sys/arch/alpha/alpha/db_interface.c:1.31 src/sys/arch/alpha/alpha/db_interface.c:1.32 --- src/sys/arch/alpha/alpha/db_interface.c:1.31 Wed Mar 18 10:22:22 2009 +++ src/sys/arch/alpha/alpha/db_interface.c Tue Jun 8 06:14:57 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: db_interface.c,v 1.31 2009/03/18 10:22:22 cegger Exp $ */ +/* $NetBSD: db_interface.c,v 1.32 2010/06/08 06:14:57 mrg Exp $ */ /* * Mach Operating System @@ -52,7 +52,7 @@ #include <sys/cdefs.h> /* RCS ID & Copyright macro defns */ -__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.31 2009/03/18 10:22:22 cegger Exp $"); +__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.32 2010/06/08 06:14:57 mrg Exp $"); #include <sys/param.h> #include <sys/proc.h> @@ -94,7 +94,8 @@ const struct db_command db_machine_command_table[] = { #if defined(MULTIPROCESSOR) - { DDB_ADD_CMD("cpu", db_mach_cpu, 0,NULL,NULL,NULL) }, + { DDB_ADD_CMD("cpu", db_mach_cpu, 0, + "switch to another cpu", "cpu-no", NULL) }, #endif { DDB_ADD_CMD(NULL, NULL, 0,NULL,NULL,NULL) }, };