From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] Add call command on PPC
Date: Fri, 15 Feb 2008 02:29:39 -0500 [thread overview]
Message-ID: <200802150229.40045.vapier@gentoo.org> (raw)
In-Reply-To: <20080215082159.13040916@dhcp-252-066.norway.atmel.com>
On Friday 15 February 2008, Haavard Skinnemoen wrote:
> Mike Frysinger <vapier@gentoo.org> wrote:
> > > if someone can tell me what the number of args are for each arch we
> > > can see about providing this everywhere.
> >
> > are you sure you actually need to worry about such things ? i'm pretty
> > sure any relevant architecture says that the first X arguments go via
> > registers and the rest go on the stack. let the compiler worry about the
> > exact value for X.
>
> I guess the real question is whether it's acceptable to pass arguments
> on the stack to such subprograms. If the answer is yes, why not simply
> use varargs?
if the goal is to keep things in registers, "call" and its description are way
too vague. the description makes me think this is meant to be a "go" for
functions.
> If the answer is no: avr32 can pass up to 5 arguments through registers.
x86 does 0 while Blackfin does 3.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20080215/90d02255/attachment.pgp
next prev parent reply other threads:[~2008-02-15 7:29 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-13 23:50 [U-Boot-Users] [RFC] raw go command Kumar Gala
2008-02-14 0:40 ` Wolfgang Denk
2008-02-14 0:57 ` Kumar Gala
2008-02-14 8:12 ` Haavard Skinnemoen
2008-02-14 14:24 ` Kumar Gala
2008-02-15 5:42 ` [U-Boot-Users] [PATCH] Add call command on PPC Kumar Gala
2008-02-15 5:54 ` Mike Frysinger
2008-02-15 6:00 ` Kumar Gala
2008-02-15 6:02 ` [U-Boot-Users] [PATCH v2] " Kumar Gala
2008-02-15 8:41 ` Wolfgang Denk
2008-02-16 8:03 ` Mike Frysinger
2008-02-15 6:32 ` [U-Boot-Users] [PATCH] " Mike Frysinger
2008-02-15 6:40 ` Kumar Gala
2008-02-15 7:08 ` Mike Frysinger
2008-02-15 7:21 ` Haavard Skinnemoen
2008-02-15 7:29 ` Mike Frysinger [this message]
2008-02-15 8:16 ` Kumar Gala
2008-02-15 8:56 ` Haavard Skinnemoen
2008-02-15 9:26 ` Mike Frysinger
2008-02-15 8:14 ` Kumar Gala
2008-02-15 8:43 ` Wolfgang Denk
2008-02-15 8:30 ` Wolfgang Denk
2008-02-16 8:10 ` Mike Frysinger
2008-02-15 8:42 ` Wolfgang Denk
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=200802150229.40045.vapier@gentoo.org \
--to=vapier@gentoo.org \
--cc=u-boot@lists.denx.de \
/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