From: Matthew Wilcox <Matthew.Wilcox@genedata.com>
To: Grant Grundler <grundler@cup.hp.com>
Cc: Matthew Wilcox <Matthew.Wilcox@genedata.com>,
parisc-linux@thepuffingroup.com
Subject: Re: [parisc-linux] Anyone got a few moments?
Date: Mon, 28 Jun 1999 19:34:04 +0200 [thread overview]
Message-ID: <19990628193404.I30362@mencheca.ch.genedata.com> (raw)
In-Reply-To: <199906281709.KAA03215@milano.cup.hp.com>; from Grant Grundler on Mon, Jun 28, 1999 at 10:09:16AM -0700
On Mon, Jun 28, 1999 at 10:09:16AM -0700, Grant Grundler wrote:
> Matthew Wilcox wrote:
> >
> > Which of the people involved in this project know PA-RISC assembler?
> >
> > We need xchg() written (in include/asm-parisc/system.h) before the
> > networking will compile. We're going to need other stuff written too of
> > course; I know ARM assembler, so I guess I could probably learn PA-RISC
> > asm if no-one else wants to.
>
> What does xchg() do?
/*
* Atomic [test&set] exchange
*
* void *xchg_u32(void *ptr, unsigned long val)
* Changes the memory location '*ptr' to be val and returns
* the previous value stored there.
*/
It's atomic with respect to interrupts and other CPUs.
PA-RISC 2.0 seems to have LDC{W,D}, but that's going to make implementation
a real pain.
> If it's a byte swapper, look at "PA-RISC 2.0 Architecture", by Gerry Kane
> from HP Professionl books, page I-6. That's "Programming Notes" section.
> Gives examples for "Endian byte swapping" for 32 and 64-bit quantities.
> They work - HP-UX is using them.
thanks for the tip. No-one's written those yet; I'll do those next.
--
Matthew Wilcox <willy@bofh.ai>
"Windows and MacOS are products, contrived by engineers in the service of
specific companies. Unix, by contrast, is not so much a product as it is a
painstakingly compiled oral history of the hacker subculture." - N Stephenson
next prev parent reply other threads:[~1999-06-28 17:33 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-06-28 15:21 [parisc-linux] Anyone got a few moments? Matthew Wilcox
1999-06-28 17:09 ` Grant Grundler
1999-06-28 17:34 ` Matthew Wilcox [this message]
1999-06-28 17:47 ` Jeffrey A Law
1999-06-28 18:10 ` Matthew Wilcox
1999-06-28 18:37 ` Alan Cox
1999-06-28 19:00 ` Matthew Wilcox
1999-06-28 19:12 ` Alan Cox
1999-06-28 18:39 ` Alan Cox
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=19990628193404.I30362@mencheca.ch.genedata.com \
--to=matthew.wilcox@genedata.com \
--cc=grundler@cup.hp.com \
--cc=parisc-linux@thepuffingroup.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.