From owner-cvs-src@FreeBSD.ORG Sun May 4 23:29:39 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 32CB31065674; Sun, 4 May 2008 23:29:39 +0000 (UTC) (envelope-from peter@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 18F938FC0A; Sun, 4 May 2008 23:29:39 +0000 (UTC) (envelope-from peter@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m44NTdwg093170; Sun, 4 May 2008 23:29:39 GMT (envelope-from peter@repoman.freebsd.org) Received: (from peter@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m44NTcfv093169; Sun, 4 May 2008 23:29:38 GMT (envelope-from peter) Message-Id: <200805042329.m44NTcfv093169@repoman.freebsd.org> From: Peter Wemm Date: Sun, 4 May 2008 23:29:38 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/arm/at91 uart_dev_at91usart.c src/sys/dev/dcons dcons_os.c src/sys/dev/ofw ofw_console.c src/sys/dev/sio sio.c src/sys/dev/uart uart_core.c src/sys/kern subr_kdb.c src/sys/pc98/cbus sio.c src/sys/sun4v/sun4v hvcons.c src/sys/sys ... X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 May 2008 23:29:39 -0000 peter 2008-05-04 23:29:38 UTC FreeBSD src repository Modified files: sys/arm/at91 uart_dev_at91usart.c sys/dev/dcons dcons_os.c sys/dev/ofw ofw_console.c sys/dev/sio sio.c sys/dev/uart uart_core.c sys/kern subr_kdb.c sys/pc98/cbus sio.c sys/sun4v/sun4v hvcons.c sys/sys kdb.h Log: Expand kdb_alt_break a little, most commonly used with the option ALT_BREAK_TO_DEBUGGER. In addition to "Enter ~ ctrl-B" (to enter the debugger), there is now "Enter ~ ctrl-P" (force panic) and "Enter ~ ctrl-R" (request clean reboot, ala ctrl-alt-del on syscons). We've used variations of this at work. The force panic sequence is best used with KDB_UNATTENDED for when you just want it to dump and get on with it. The reboot request is a safer way of getting into single user than a power cycle. eg: you've hosed the ability to log in (pam, rtld, etc). It gives init the reboot signal, which causes an orderly reboot. I've taken my best guess at what the !x86 and non-sio code changes should be. This also makes sio release its spinlock before calling KDB/DDB. Revision Changes Path 1.14 +13 -2 src/sys/arm/at91/uart_dev_at91usart.c 1.21 +24 -10 src/sys/dev/dcons/dcons_os.c 1.39 +17 -2 src/sys/dev/ofw/ofw_console.c 1.474 +23 -3 src/sys/dev/sio/sio.c 1.24 +17 -3 src/sys/dev/uart/uart_core.c 1.26 +35 -11 src/sys/kern/subr_kdb.c 1.249 +23 -4 src/sys/pc98/cbus/sio.c 1.8 +16 -2 src/sys/sun4v/sun4v/hvcons.c 1.7 +7 -0 src/sys/sys/kdb.h