All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jerry Huck <huck@cup.hp.com>
To: Matthew.Wilcox@genedata.com
Cc: lamont@security.hp.com, parisc-linux@thepuffingroup.com
Subject: Re: [parisc-linux] HPUX syscall ABI?
Date: Mon, 2 Aug 1999 09:50:39 -0700 (PDT)	[thread overview]
Message-ID: <199908021650.JAA10088@lucy.cup.hp.com> (raw)
In-Reply-To: <19990802082612.X25925@mencheca.ch.genedata.com> from Matthew Wilcox at Aug "2," 1999 "08:26:12" am

> Date: Mon, 2 Aug 1999 08:26:12 +0200
> 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?

... To LaMont's reply Matthew writes:

> 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..

Just as an aside, you might want to use the gateway page to do some
fix-ups.  On the gateway page, you can delay the promotion, do some
argument shuffling and other glue code in the user's context, and then
finally gateway to priv 0 (and presumably to some kernel code).  You
could load up all the scratch registers with arguments and then have
the kernel-stack switch code push the arguments after the priv change.

I've always wanted HP-UX to use this type of approach to read as many
arguments (and memory data structures) as can fit in the scratch
region on both call and return.  You can avoid all the high overhead
kernel-user copy code.  Simple things, like "gettimeofday", could pop into
the kernel, get the return values, return to priv 3 near those gateway
pages, write the return values to memory, and return to the caller
without any kernel-user copies.

Jerry Huck
(PA-RISC architecture group)

      parent reply	other threads:[~1999-08-02 16:50 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
1999-08-02  8:36     ` LaMont Jones
1999-08-02 16:50     ` Jerry Huck [this message]

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=199908021650.JAA10088@lucy.cup.hp.com \
    --to=huck@cup.hp.com \
    --cc=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 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.