From: Matthew Wilcox <Matthew.Wilcox@genedata.com>
To: LaMont Jones <lamont@security.hp.com>
Cc: Matthew Wilcox <Matthew.Wilcox@genedata.com>,
parisc-linux@thepuffingroup.com
Subject: Re: [parisc-linux] HPUX syscall ABI?
Date: Mon, 2 Aug 1999 08:26:12 +0200 [thread overview]
Message-ID: <19990802082612.X25925@mencheca.ch.genedata.com> (raw)
In-Reply-To: <19990802060824.878A318708@security.hp.com>; from LaMont Jones on Mon, Aug 02, 1999 at 12:08:24AM -0600
On Mon, Aug 02, 1999 at 12:08:24AM -0600, LaMont Jones wrote:
> > I've just redefined the Linux syscall ABI again so we can
> > handle sys_mmap (which takes 6 arguments) cleanly. I'm now
> > wondering what the HPUX syscall standard is. I've searched
> > http://docs.hp.com:80/dynaweb/hpux11/dtdcen1a/b821/@Generic__BookView
> > (as mentioned earlier on this mailing list) without success.
>
> IIRC, r22 has the syscall number, r31 (and sr0) gets trashed branching
> to 0.0xc0000004 (they probably get used as part of the return - I'm too
> lazy to go look right now, but I'm pretty sure that r31 gets copied into
> r2). Other than that, it's a standard PA1.1 function call: arg0-3 in
> r26-21, and arg4-n at sp-52, -56, ...
>
> Was that what you were looking for?
Yep, that's exactly what I need. Urgh, so I have to grab the arguments
off the user-mode stack before switching to the kernel-mode stack..
What's the greatest number of parameters to an HPUX syscall?
Linux's mmap() has six parameters (and you should see the kludges some
architectures go through to support that. We're cleaner).
--
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-08-02 6:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-08-01 19:50 [parisc-linux] HPUX syscall ABI? Matthew Wilcox
1999-08-02 3:32 ` Philipp Rumpf
1999-08-02 4:12 ` Jeffrey A Law
1999-08-02 4:21 ` Philipp Rumpf
1999-08-02 4:27 ` Jeffrey A Law
1999-08-02 6:08 ` LaMont Jones
1999-08-02 6:26 ` Matthew Wilcox [this message]
1999-08-02 8:36 ` LaMont Jones
1999-08-02 16:50 ` Jerry Huck
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=19990802082612.X25925@mencheca.ch.genedata.com \
--to=matthew.wilcox@genedata.com \
--cc=lamont@security.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox