From owner-freebsd-current Thu Jul 11 18: 9:33 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9A96337B400; Thu, 11 Jul 2002 18:09:30 -0700 (PDT) Received: from mail.jeamland.net (rafe.jeamland.net [203.18.243.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id 85FF143E72; Thu, 11 Jul 2002 18:09:29 -0700 (PDT) (envelope-from benno@FreeBSD.org) Received: from [192.168.9.176] (rtr1.snc.schools.net.au [203.2.135.22]) by mail.jeamland.net (Postfix) with ESMTP id 465D37060A; Fri, 12 Jul 2002 11:09:22 +1000 (EST) Subject: Re: Thread state From: Benno Rice To: John Baldwin Cc: julian@FreeBSD.org, peter@FreeBSD.org, current@FreeBSD.org In-Reply-To: References: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-+OxtgyciSLl961wSwalD" X-Mailer: Ximian Evolution 1.0.7 Date: 12 Jul 2002 11:09:20 +1000 Message-Id: <1026436162.408.0.camel@ratchet.jeamland.net> Mime-Version: 1.0 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --=-+OxtgyciSLl961wSwalD Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2002-07-12 at 08:47, John Baldwin wrote: > Currently, sparc64 SMP panics before getting out of single user mode > because there is an optimization case in cpu_switch() (if we are > switching back to the same thread, we just return right away) that > doesn't set td_state to TDS_RUNNING. Also, according to Peter, the > code in ia64's cpu_switch() doesn't work either. Rather than try to > fix this in the assembler though, I think it is easier to just set > the thread state once in C at the end of choosethread(). It is a > lot easier to maintain down the road. The patch to do this is at > http://www.freebsd.org/~jhb/patches/kse_switch.patch >=20 > It has been tested on sparc64, alpha, and i386 all with SMP. I > would like to commit it soonish. Comments? I think it's a great idea. No problems from here. =3D) --=20 Benno Rice benno@FreeBSD.org --=-+OxtgyciSLl961wSwalD Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQA9LixAXjRwWofFmQkRAi3pAJ4l1TZ3jjM8lU2PrLtdqg+ZM0GAUgCcCUey gvx57vzWy4XADF16G6Fq5IY= =2G5T -----END PGP SIGNATURE----- --=-+OxtgyciSLl961wSwalD-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message