🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #8017

SPARC context switch

#8017
From: Charles Flaig
Date: Tue, 04 Jun 1991 18:40
19 lines
1397 bytes
[This is posted for a friend of mine.  I'll track discussion in this group
 for a week or so, and you can also mail replys to my account.  Just don't
 expect me to be able to discuss the problem because I'm clueless.]

I would appreciate hearing from anyone who has figured out a SAFE way to
implement thread context switching on the SPARC using setjmp - longjmp.

Apparently, on the SPARC, longjmp can only be used to jump up "higher" on
the stack because longjmp does some special register restores which assume
one is jumping back "higher" in the stack.  I need to be able to jump to
arbitrary places within the stack each time I do a thread context switch.
For this particular project, I am not able to use Sun's lightweight threads
package.

C or C++ level solutions are preferred, but assembly language code solutions
would do the job.  Also any leads to someone else who might know....

--Charles
  flaig@apple.com
Technical Details
Message-ID: <3126@brchh104.bnr.ca>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request
From: flaig@apple.com (Charles Flaig)
Newsgroups: comp.sys.sun
Subject: SPARC context switch
Keywords: No Digest Subjects in Unmoderated Mode
Message-ID: <3126@brchh104.bnr.ca>
Date: 4 Jun 91 18:40:00 GMT
Sender: news@brchh104.bnr.ca
Organization: Sunspots, Psuedo-Unmoderated
Lines: 22
Approved: sun-spots@rice.edu
X-Original-Date:    11 May 91 21:28:46 GMT