From owner-cvs-all Tue Jan 15 6:17:16 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 00A8937B404; Tue, 15 Jan 2002 06:17:08 -0800 (PST) Received: (from jhb@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g0FEH7989625; Tue, 15 Jan 2002 06:17:07 -0800 (PST) (envelope-from jhb) Message-Id: <200201151417.g0FEH7989625@freefall.freebsd.org> From: John Baldwin Date: Tue, 15 Jan 2002 06:17:07 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/alpha/alpha trap.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG jhb 2002/01/15 06:17:07 PST Modified files: sys/alpha/alpha trap.c Log: - Catch up printtrap() to KSE by using curthread and testing it against NULL rather than curproc. Without this, if we trap early before curthread is set, we recursively panic. - In an SMP kernel, if we trap before curthread is set, then trap is going to recursively panic trying to bump td->td_md.md_kernnest. The trap is fatal anyways, so to make debugging easier just call printtrap() to dump the trap info to the console and then halt. Revision Changes Path 1.82 +9 -5 src/sys/alpha/alpha/trap.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message