Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932108AbXARJNg (ORCPT ); Thu, 18 Jan 2007 04:13:36 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932100AbXARJNf (ORCPT ); Thu, 18 Jan 2007 04:13:35 -0500 Received: from caramon.arm.linux.org.uk ([217.147.92.249]:2533 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932108AbXARJNe (ORCPT ); Thu, 18 Jan 2007 04:13:34 -0500 Date: Thu, 18 Jan 2007 09:13:27 +0000 From: Russell King To: Brian Beattie Cc: linux-kernel@vger.kernel.org Subject: Re: A question about break and sysrq on a serial console (2.6.19.1) Message-ID: <20070118091326.GB32068@flint.arm.linux.org.uk> Mail-Followup-To: Brian Beattie , linux-kernel@vger.kernel.org References: <1169078214.16802.17.camel@brianb> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1169078214.16802.17.camel@brianb> User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1199 Lines: 27 On Wed, Jan 17, 2007 at 03:56:54PM -0800, Brian Beattie wrote: > I'm trying to do a SYSRQ over a serial console. As I understand it a > break will do that, but I'm not seeing the SYSRQ. In looking at > uart_handle_break() in drivers/serial/8250.c it looks like the code will > toggle port->sysrq, rather than just setting it when the port is a > console. I think the correct code would be to move the "port->sysrq = > 0;" to follow the closing brace on the next line, or am I missing > something. Thereby preventing the action of (which may be to cause a SAK event, which would be rather important on a console to ensure that you're really logging in rather than typing your password into another users program which just looks like a login program.) Note that the sequence for sysrq is: (non-break characters or nothing) -- Russell King Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/