PS_BLOCKED

David Xu davidxu at freebsd.org
Sun Apr 6 23:39:02 PDT 2003


----- Original Message ----- 
From: "Daniel Eischen" <eischen at pcnet1.pcnet.com>
To: "David Xu" <davidxu at freebsd.org>
Cc: <freebsd-threads at freebsd.org>
Sent: Sunday, April 06, 2003 8:39 PM
Subject: Re: PS_BLOCKED


> I forgot to mention it, but I think I found a kernel bug also.
> Sometimes when the kernel exports a context to the UTS the
> %gs register isn't set; it doesn't seem to be saved in some
> instances.  I think it might only be when a kernel thread
> is swapped out (without blocking).  Does %gs always get saved,
> even if the thread is interrupted by an interrupt?

Please test the attached patch to see if %gs problem is fixed.

David Xu

-------------- next part --------------
A non-text attachment was scrubbed...
Name: kern_thread.c.diff
Type: application/octet-stream
Size: 1337 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-threads/attachments/20030407/9b18b932/kern_thread.c.obj


More information about the freebsd-threads mailing list