From owner-cvs-src@FreeBSD.ORG Tue Feb 15 07:21:21 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3FC6C16A4CE; Tue, 15 Feb 2005 07:21:21 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 09A7B43D45; Tue, 15 Feb 2005 07:21:21 +0000 (GMT) (envelope-from njl@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j1F7LKZb088969; Tue, 15 Feb 2005 07:21:20 GMT (envelope-from njl@repoman.freebsd.org) Received: (from njl@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j1F7LKaq088968; Tue, 15 Feb 2005 07:21:20 GMT (envelope-from njl) Message-Id: <200502150721.j1F7LKaq088968@repoman.freebsd.org> From: Nate Lawson Date: Tue, 15 Feb 2005 07:21:20 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/i386/i386 legacy.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 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: Tue, 15 Feb 2005 07:21:21 -0000 njl 2005-02-15 07:21:20 UTC FreeBSD src repository Modified files: sys/i386/i386 legacy.c Log: Correct a few bugs in the legacy cpu attachment. Get the unit from the parent cpu device before passing it to pcpu_find(). Get the ivars from the child, not parent cpu device. These bugs would cause a panic when dereferencing the pcpu ivar, but weren't present in the acpi attachment which it seems most people are using. Revision Changes Path 1.61 +2 -3 src/sys/i386/i386/legacy.c