Lightweight process help
Michael Schwartz
schwartz at boulder.colorado.edu
Wed Jan 18 11:24:54 AEST 1989
In article <982 at noao.UUCP>, gillies at 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
More information about the Comp.sys.sun
mailing list