From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH 5/8] SPARC: Added AMBA PnP Information listing command for LEON3
Date: Thu, 13 Mar 2008 13:17:31 +0100 [thread overview]
Message-ID: <20080313121731.80797247AF@gemini.denx.de> (raw)
In-Reply-To: Your message of "Thu, 13 Mar 2008 10:39:25 +0100." <47D8F64D.6030903@gaisler.com>
In message <47D8F64D.6030903@gaisler.com> you wrote:
> This patch adds an U-Boot command, ambapp, which prints a summary
> of AMBA Bus Plug & Play information.
...
> diff --git a/common/Makefile b/common/Makefile
> index a88d1ef..3d369ff 100644
> --- a/common/Makefile
> +++ b/common/Makefile
> @@ -91,6 +91,7 @@ COBJS-$(CONFIG_CMD_STRINGS) += cmd_strings.o
> COBJS-$(CONFIG_CMD_TERMINAL) += cmd_terminal.o
> COBJS-$(CONFIG_CMD_UNIVERSE) += cmd_universe.o
> COBJS-$(CONFIG_CMD_USB) += cmd_usb.o
> +COBJS-y += cmd_ambapp.o
Please compile the code only for boards that enable it in the
configuration.
> diff --git a/common/cmd_ambapp.c b/common/cmd_ambapp.c
> new file mode 100644
> index 0000000..5329a3a
> --- /dev/null
> +++ b/common/cmd_ambapp.c
...
...
> +#include <common.h>
> +#include <command.h>
> +
> +#if defined(CONFIG_CMD_AMBAPP)
This should not be needed any more, then.
> +#ifndef CONFIG_LEON3
> +#error Only LEON3 processors support the AMBA Plug&Play bus
> +#endif
> +
> +#include <ambapp.h>
> +
> +DECLARE_GLOBAL_DATA_PTR;
> +
> +/* We put these variables into .data section so that they are
> + * zero when entering the AMBA Plug & Play Section the first time.
> + * BSS is not garantueed to be zero since BSS hasn't been cleared
> + * the first times entering the AMBA functions.
> + */
Um.... when would that be? Command code like this cannot be executed
before relocation to RAM, and by then the BSS *is* zeroed.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Good manners are the settled medium of social, as specie is of
commercial, life; returns are equally expected for both.
- Lord Chesterfield _Letters to his Son_, 25 December 1753
next prev parent reply other threads:[~2008-03-13 12:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-13 9:39 [U-Boot-Users] [PATCH 5/8] SPARC: Added AMBA PnP Information listing command for LEON3 Daniel Hellstrom
2008-03-13 12:17 ` Wolfgang Denk [this message]
2008-03-13 12:53 ` Daniel Hellstrom
2008-03-13 12:29 ` Jean-Christophe PLAGNIOL-VILLARD
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=20080313121731.80797247AF@gemini.denx.de \
--to=wd@denx.de \
--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