From owner-cvs-all Sat Jun 29 2:39:50 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7279737B400; Sat, 29 Jun 2002 02:39:45 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 38C3743E0A; Sat, 29 Jun 2002 02:39:45 -0700 (PDT) (envelope-from benno@FreeBSD.org) Received: from freefall.freebsd.org (benno@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g5T9djJU045969; Sat, 29 Jun 2002 02:39:45 -0700 (PDT) (envelope-from benno@freefall.freebsd.org) Received: (from benno@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g5T9djul045968; Sat, 29 Jun 2002 02:39:45 -0700 (PDT) Message-Id: <200206290939.g5T9djul045968@freefall.freebsd.org> From: Benno Rice Date: Sat, 29 Jun 2002 02:39:44 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/powerpc/include pcb.h src/sys/powerpc/powerpc swtch.s 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 benno 2002/06/29 02:39:44 PDT Modified files: sys/powerpc/include pcb.h sys/powerpc/powerpc swtch.s Log: To quote Peter: The case in cpu_switch() where there isn't a higher priority thread (choosethread() == curthread) uses r4 as the PCB context pointer. However, the use of r4 after the label L2 is incorrect, since it was probably trashed by the call to choosethread, and in any case was set up to curthread at the start of the routine. This condition will occur when an interrupt thread schedules a netisr, which is a lower priority thread. Another (probably unnecessary) difference is that I was paranoid about register trashing, so I decided to save r2 and r13 as well. Submitted by: Peter Grehan Revision Changes Path 1.5 +1 -1 src/sys/powerpc/include/pcb.h 1.14 +15 -10 src/sys/powerpc/powerpc/swtch.s To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message