All of lore.kernel.org
 help / color / mirror / Atom feed
From: Roland Dreier <roland@topspin.com>
To: root@chaos.analogic.com
Cc: Linux kernel <linux-kernel@vger.kernel.org>
Subject: Re: Linux-2.6.5-1.358 SMP
Date: Tue, 05 Oct 2004 16:47:21 -0700	[thread overview]
Message-ID: <52vfdoraly.fsf@topspin.com> (raw)
In-Reply-To: <Pine.LNX.4.53.0410051852250.351@chaos.analogic.com> (Richard B. Johnson's message of "Tue, 5 Oct 2004 18:58:24 -0400 (EDT)")

    Richard> I need to make some modules that have lots of assembly
    Richard> code.  This assembly uses the UNIX calling convention and
    Richard> can't be re-written (it would take many months). The new
    Richard> kernel is compiled with "-mregparam=2". I can't find
    Richard> where that's defined. I need to remove it because I
    Richard> cannot pass parameters to the assembly stuff in
    Richard> registers.

You should be able to use CONFIG_REGPARM to control this.  Another
option is just to mark the functions in your source as "asmlinkage"
(which is defined to "__attribute__((regparm(0)))" in
asm-i386/linkage.h).  The advantage of using asmlinkage is that your
code will work with anyone's kernel.

 - Roland


  parent reply	other threads:[~2004-10-05 23:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-05 22:58 Linux-2.6.5-1.358 SMP Richard B. Johnson
2004-10-05 23:05 ` Jan Dittmer
2004-10-05 23:09   ` Richard B. Johnson
2004-10-05 23:06 ` Nathan Bryant
2004-10-05 23:47 ` Roland Dreier [this message]
2004-10-05 23:59   ` root
2004-10-06  0:30     ` Roland Dreier

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=52vfdoraly.fsf@topspin.com \
    --to=roland@topspin.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=root@chaos.analogic.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.