🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #10344

Re: Lightweight process help

#10344
From: Michael Schwartz
Date: Wed, 18 Jan 1989 01:24
36 lines
1596 bytes
In article <982@noao.UUCP>, gillies@noao.edu (Kim Gillies X246) writes:
> ...
> Does anybody know where REGOFFSET lives?

This was a problem with Sun's release -- they forgot to include the file
that contains this symbol in the release.  Release 4.0.1 supposedly fixes
the problem.  In the meantime, you can get around it as follows.

Create a file called lwpfix.s containing
	.globl	REGOFFSET
REGOFFSET = 8

Then, assemble it (cc -c lwpfix.s) and add it to your lwp library:
	ar u /usr/lib/liblwp.a lwpfix.o

(or, of course, you could just link this file in directly with your
program).

That was the fix for Sun 3's.  For Sun 4's, put the following in lwpfix.s
and add the assembled file to your library:
	.globl	SP_OFFSET
	.globl	PC_OFFSET
	.globl	Y_OFFSET
	.globl	G2_OFFSET
	.globl	O0_OFFSET
	.globl	CKSTKOVERHEAD
SP_OFFSET = 64
PC_OFFSET = 72
Y_OFFSET = 84
G2_OFFSET = 16
O0_OFFSET = 40
CKSTKOVERHEAD = 10240

 - Mike Schwartz
   Dept. of Computer Science
   U. Colorado - Boulder
Technical Details
Message-ID: <5799@boulder.Colorado.EDU>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ncis.llnl.gov!ncis!helios.ee.lbl.gov!pasteur!agate!bionet!csd4.milw.wisc.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request
References: <982@noao.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ncis.llnl.gov!ncis!helios.ee.lbl.gov!pasteur!agate!bionet!csd4.milw.wisc.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request
From: schwartz@boulder.colorado.edu (Michael Schwartz)
Newsgroups: comp.sys.sun
Subject: Re: Lightweight process help
Message-ID: <5799@boulder.Colorado.EDU>
Date: 18 Jan 89 01:24:54 GMT
References: <982@noao.UUCP>
Sender: usenet@rice.edu
Organization: Sun-Spots
Lines: 36
Approved: Sun-Spots@rice.edu
Original-Date: 13 Jan 89 07:20:38 GMT
X-Sun-Spots-Digest: Volume 7, Issue 108, message 4 of 16