All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
To: u-boot@lists.denx.de
Subject: [PATCH] BDINFO: ARC: print info about relocations
Date: Sat, 25 Apr 2020 00:10:40 +0300	[thread overview]
Message-ID: <20200424211040.31294-1-Eugeniy.Paltsev@synopsys.com> (raw)

Print relocation information in bdinfo.
NOTE: this patch changes only ARC part of bdinfo code.

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
---
 cmd/bdinfo.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c
index d6a7175b379..31ec4615641 100644
--- a/cmd/bdinfo.c
+++ b/cmd/bdinfo.c
@@ -439,20 +439,24 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 	return 0;
 }
 
 #elif defined(CONFIG_ARC)
 
 int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 {
 	bd_t *bd = gd->bd;
 
 	print_bi_mem(bd);
+	if (!(gd->flags & GD_FLG_SKIP_RELOC)) {
+		print_num("relocaddr", gd->relocaddr);
+		print_num("reloc off", gd->reloc_off);
+	}
 	print_eth_ip_addr();
 	print_baudrate();
 
 	return 0;
 }
 
 #elif defined(CONFIG_XTENSA)
 
 int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 {
-- 
2.21.1

             reply	other threads:[~2020-04-24 21:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-24 21:10 Eugeniy Paltsev [this message]
2020-05-13 13:55 ` [PATCH] BDINFO: ARC: print info about relocations Alexey Brodkin

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=20200424211040.31294-1-Eugeniy.Paltsev@synopsys.com \
    --to=eugeniy.paltsev@synopsys.com \
    --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 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.