public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Usage of bi_env ?
@ 2010-07-07 15:07 Dirk Behme
  2010-07-15 21:21 ` Wolfgang Denk
  0 siblings, 1 reply; 3+ messages in thread
From: Dirk Behme @ 2010-07-07 15:07 UTC (permalink / raw)
  To: u-boot

With U-Boot 2010.03 on an ARM board, the output of 'bdinfo' command gives:

...
env_t = 0x00000000
...

The code in common/cmd_bdinfo.c for this is

bd_t *bd = gd->bd;
...
print_num ("env_t", (ulong)bd->bi_env);

While checking if 0 for this value is correct or not, it looks to me 
that bi_env isn't set anywhere and is unused [1]. And it looks like 
bi_env is printed only in the ARM version of bdinfo. Do I miss 
anything here?

Best regards

Dirk

[1] grep for bi_env in 2010.03:

./include/asm-i386/u-boot.h:54: struct environment_s           *bi_env;
./include/asm-i386/u-boot.h:62:#define bi_env_data bi_env->data
./include/asm-i386/u-boot.h:63:#define bi_env_crc  bi_env->crc
./include/asm-arm/u-boot.h:42:    struct environment_s         *bi_env;
./include/asm-arm/u-boot.h:52:#define bi_env_data bi_env->data
./include/asm-arm/u-boot.h:53:#define bi_env_crc  bi_env->crc
./include/asm-mips/u-boot.h:45:#define bi_env_data bi_env->data
./include/asm-mips/u-boot.h:46:#define bi_env_crc  bi_env->crc
./include/asm-avr32/u-boot.h:29:        struct environment_s    *bi_env;
./common/cmd_bdinfo.c:328:      print_num ("env_t", (ulong)bd->bi_env);

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] Usage of bi_env ?
  2010-07-07 15:07 [U-Boot] Usage of bi_env ? Dirk Behme
@ 2010-07-15 21:21 ` Wolfgang Denk
  2010-07-27 16:38   ` Dirk Behme
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Denk @ 2010-07-15 21:21 UTC (permalink / raw)
  To: u-boot

Dear Dirk Behme,

In message <4C349814.2000804@googlemail.com> you wrote:
> With U-Boot 2010.03 on an ARM board, the output of 'bdinfo' command gives:
> 
> ...
> env_t = 0x00000000
> ...
> 
> The code in common/cmd_bdinfo.c for this is
> 
> bd_t *bd = gd->bd;
> ...
> print_num ("env_t", (ulong)bd->bi_env);
> 
> While checking if 0 for this value is correct or not, it looks to me 
> that bi_env isn't set anywhere and is unused [1]. And it looks like 
> bi_env is printed only in the ARM version of bdinfo. Do I miss 
> anything here?

You missed sending a patch that cleans this up :-)

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
The trouble with our times is that the future is not what it used  to
be.                                                     - Paul Valery

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] Usage of bi_env ?
  2010-07-15 21:21 ` Wolfgang Denk
@ 2010-07-27 16:38   ` Dirk Behme
  0 siblings, 0 replies; 3+ messages in thread
From: Dirk Behme @ 2010-07-27 16:38 UTC (permalink / raw)
  To: u-boot

On 15.07.2010 23:21, Wolfgang Denk wrote:
> Dear Dirk Behme,
>
> In message<4C349814.2000804@googlemail.com>  you wrote:
>> With U-Boot 2010.03 on an ARM board, the output of 'bdinfo' command gives:
>>
>> ...
>> env_t = 0x00000000
>> ...
>>
>> The code in common/cmd_bdinfo.c for this is
>>
>> bd_t *bd = gd->bd;
>> ...
>> print_num ("env_t", (ulong)bd->bi_env);
>>
>> While checking if 0 for this value is correct or not, it looks to me
>> that bi_env isn't set anywhere and is unused [1]. And it looks like
>> bi_env is printed only in the ARM version of bdinfo. Do I miss
>> anything here?
>
> You missed sending a patch that cleans this up :-)

Fixed some minutes ago ;)

Best regards

Dirk

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-07-27 16:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-07 15:07 [U-Boot] Usage of bi_env ? Dirk Behme
2010-07-15 21:21 ` Wolfgang Denk
2010-07-27 16:38   ` Dirk Behme

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox