From: Christian Suder <csuder@cisco.com>
To: parisc-linux@lists.parisc-linux.org
Subject: [parisc-linux] Need five #defines, please.....
Date: Fri, 4 Jan 2002 01:25:59 -0800 [thread overview]
Message-ID: <20020104012559.69375281.csuder@cisco.com> (raw)
Ok,
I'm trying to skin the lizard (mozilla 0.9.7). I can build with the linux
default pthreads, but it doesn' work, windows show up but the content is
not drawn etc.. Hence I'd like to try a build with "classic" NSPR, which
implements it's own threading mechanism. Problem : There is a couple of
hardware-specific definitions that I don't know how to do, but somebody
with some insight in parisc-linux may be able to put it down in 5 minutes
(I hope..). Or maybe it has been solved it already ?
Here's what I'm missing :
#elif defined(__hppa__)
/* parisc */
#define _MD_GET_SP(_t)
#define _MD_SET_FP(_t, val)
#define _MD_GET_SP_PTR(_t)
#define _MD_GET_FP_PTR(_t)
#define _MD_SP_TYPE
As a hint, here some existing defines. As far as my limited incompetence
can tell these provide access to some of the context information of the
threads :
/* Sparc */
#define _MD_GET_SP(_t) (_t)->md.context[0].__jmpbuf[JB_SP]
#define _MD_SET_FP(_t, val) ((_t)->md.context[0].__jmpbuf[JB_FP] = val)
#define _MD_GET_SP_PTR(_t) &(_MD_GET_SP(_t))
#define _MD_GET_FP_PTR(_t) (&(_t)->md.context[0].__jmpbuf[JB_FP])
#define _MD_SP_TYPE int
/* Alpha based Linux */
#define _MD_GET_SP(_t) (_t)->md.context[0].__jmpbuf[JB_SP]
#define _MD_SET_FP(_t, val)
#define _MD_GET_SP_PTR(_t) &(_MD_GET_SP(_t))
#define _MD_GET_FP_PTR(_t) ((void *) 0)
#define _MD_SP_TYPE long int
/* Intel based Linux */
#define _MD_GET_SP(_t) (_t)->md.context[0].__jmpbuf[JB_SP]
#define _MD_SET_FP(_t, val) ((_t)->md.context[0].__jmpbuf[JB_BP] = val)
#define _MD_GET_SP_PTR(_t) &(_MD_GET_SP(_t))
#define _MD_GET_FP_PTR(_t) (&(_t)->md.context[0].__jmpbuf[JB_BP])
#define _MD_SP_TYPE int
Thanks,
Christian
next reply other threads:[~2002-01-04 9:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-04 9:25 Christian Suder [this message]
2002-01-04 10:51 ` [parisc-linux] Need five #defines, please kenneth westelinck
2002-01-04 22:31 ` Thomas Bogendoerfer
2002-01-04 23:58 ` Christian Suder
2002-01-05 1:36 ` Thomas Bogendoerfer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020104012559.69375281.csuder@cisco.com \
--to=csuder@cisco.com \
--cc=parisc-linux@lists.parisc-linux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox