public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Manfred Spraul" <manfred@colorfullife.com>
To: <alad@hss.hns.com>
Cc: <linux-kernel@vger.kernel.org>
Subject: Re: Weird __put_user_asm behavior
Date: Wed, 26 Dec 2001 13:21:39 +0100	[thread overview]
Message-ID: <000901c18e07$e2877d10$010411ac@local> (raw)

The old code evaluates addr once, your new code evaluates it twice.
Have you tried an inline function instead of a macro?
linux/fs/binfmt_elf.c contains a few lines that probably break if 'addr' is evaluated twice:
<<<<<<<
        argv = (elf_caddr_t *) sp;
        if (!ibcs) {
                __put_user((elf_addr_t)(unsigned long) envp,--sp);
                __put_user((elf_addr_t)(unsigned long) argv,--sp);
        }
<<<<<<<<<

--
    Manfred


             reply	other threads:[~2001-12-26 12:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-26 12:21 Manfred Spraul [this message]
2001-12-26 19:22 ` Weird __put_user_asm behavior Frank Cornelis
  -- strict thread matches above, loose matches on Subject: below --
2001-12-26 10:50 alad
     [not found] <01122416414400.02578@manta>
2001-12-26 10:42 ` Frank Cornelis
2001-12-24 13:53 Frank Cornelis

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='000901c18e07$e2877d10$010411ac@local' \
    --to=manfred@colorfullife.com \
    --cc=alad@hss.hns.com \
    --cc=linux-kernel@vger.kernel.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