From owner-freebsd-stable@FreeBSD.ORG Tue May 4 20:27:31 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 29FDC1065670 for ; Tue, 4 May 2010 20:27:31 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-bw0-f227.google.com (mail-bw0-f227.google.com [209.85.218.227]) by mx1.freebsd.org (Postfix) with ESMTP id A3B368FC14 for ; Tue, 4 May 2010 20:27:30 +0000 (UTC) Received: by bwz27 with SMTP id 27so2833486bwz.13 for ; Tue, 04 May 2010 13:27:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=QDFAClh91yZSIWI00l6TvYO2J52gML9ZN84tb2wNi1s=; b=Q1n3eYS/hUUfKHxLv3qRiuKRazAy+6/t44snY9rPwxQuaY8wnn8rlU+cGkKpEU/S51 d7yXn9jcpNALcJsmNeh6l2yJXuNA8diH/kaSk3y+GJNhg1K8M510Vjt++WZu6j0+Wogc J2KcmOILLdmZyx/d0gZNtC9V6GnVy1NNAjLLg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=ZWGHAuKrHIn1KxYK0bY7/sarBeNLwFOGWZAKlIRHxJWGVEYiZ4D7kWdfggUQyjd1tW KeyhaTejbVvF4N60qkpBZ8y+Dzbjaixoa96ldEfBtORHVsbJLvciEULL57u5SwkIv+oL VkHBeB6wz9n61unPOqCW1MvTDHphEEcYUM6o0= MIME-Version: 1.0 Received: by 10.204.134.193 with SMTP id k1mr4657586bkt.165.1273004844000; Tue, 04 May 2010 13:27:24 -0700 (PDT) Received: by 10.204.76.73 with HTTP; Tue, 4 May 2010 13:27:23 -0700 (PDT) In-Reply-To: <20100504200139.GP23646@deviant.kiev.zoral.com.ua> References: <20100504083738.GA23820@icarus.home.lan> <20100504085332.GA24219@icarus.home.lan> <20100504200139.GP23646@deviant.kiev.zoral.com.ua> Date: Tue, 4 May 2010 22:27:23 +0200 Message-ID: From: David DEMELIER To: Kostik Belousov Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Giovanni Trematerra , freebsd-stable@freebsd.org Subject: Re: Kernel panic when unpluggin AC adaptor X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 May 2010 20:27:31 -0000 2010/5/4 Kostik Belousov : > On Tue, May 04, 2010 at 06:35:52PM +0200, David DEMELIER wrote: >> Good news ! It worked, check the picture here : >> >> http://img63.imageshack.us/img63/4244/dsc00361g.jpg > > Please try adding code fragment like this: > =A0 =A0 =A0 =A0if (cx_next->p_lvlx =3D=3D NULL) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0printf("Going to panic.\n"); > to =A0dev/acpi/acpi_cpu.c:acpi_cpu_idle() function, right before > =A0 =A0CPU_GET_REG(cx_next->p_lvlx, 1); > line and see if it prints the message immediately before the panic. > Yes it does at the beginning of the kernel panic. Cheers. --=20 Demelier David