*BSD News Article 40378


Return to BSD News archive

Xref: sserve comp.unix.internals:8117 comp.unix.wizards:32701 comp.unix.programmer:22656 comp.unix.aix:49707 comp.unix.bsd:15846
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msunews!uwm.edu!psuvax1!news.pop.psu.edu!news.pop.psu.edu!not-for-mail
From: benson@elysium.cs.ucdavis.edu (Gregory D. Benson)
Newsgroups: comp.unix.internals,comp.unix.wizards,comp.unix.programmer,comp.unix.aix,comp.unix.bsd
Subject: Re: Architecture related questions
Followup-To: comp.unix.internals
Date: 5 Jan 1995 00:40:46 -0500
Organization: University of California, Davis
Lines: 26
Sender: barr@pop.psu.edu
Approved: barr@pop.psu.edu
Distribution: world
Message-ID: <3eg0ou$5cs@bosnia.pop.psu.edu>
References: <3d9nhh$aeu@bosnia.pop.psu.edu>
NNTP-Posting-Host: bosnia.pop.psu.edu
In-reply-to: hzhou@cs.utk.edu's message of 21 Dec 1994 12:10:09 -0500


In article <3d9nhh$aeu@bosnia.pop.psu.edu> hzhou@cs.utk.edu (Honbo Zhou) writes:

>   I am porting a SPARC-based thread package to other platforms.
>   I need to use asm() to incorporate assmbly language stuff into 
>   the C codes to do the context switching. This differs from 
>   architecture to architecture.
>
>   If someone in the net has done some stuff similar to this, I would 
>   like to talk with her/him.

Check out the source code for the SR programming language.  It implements
threads on quite a few machines (including the ones you mention) using
assembly for context switching.

The source is in:

ftp://cs.arizona.edu/sr/sr.tar.Z

Once you extract the source, the context switch code can be found in the
csw directory.

--
Gregory D. Benson       |   Department of Computer Science
benson@cs.ucdavis.edu   |   University of California, Davis