All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Remove global variable env_t *env_ptr ?
@ 2017-04-03 12:19 Joakim Tjernlund
  2017-04-03 20:17 ` Wolfgang Denk
  2017-04-04  8:55 ` Lukasz Majewski
  0 siblings, 2 replies; 10+ messages in thread
From: Joakim Tjernlund @ 2017-04-03 12:19 UTC (permalink / raw)
  To: u-boot

I am looking at adding support for runtime sizing of CONFIG_ENV_ADDR as
we need to replace out flash but we don't want to create a new u-boot binairy
just for this simple change.

While converting env_flash.c I noted the global variable
 env_t *env_ptr = (env_t *)CONFIG_ENV_ADDR;
which cannot be runtime decided.
Looking at users of this variable I only find one in pmc405de.c(not sure what that board is doing)
and for what I can tell this variable is not correct for redundant env. either.

Anyhow, I am faced wit two choices, either remove the env_ptr or
convert it to a function call.

What do fellow u-booters think about env_ptr?

 Jocke

PS. Adding my work so far here:

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

end of thread, other threads:[~2017-04-04 13:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-03 12:19 [U-Boot] Remove global variable env_t *env_ptr ? Joakim Tjernlund
2017-04-03 20:17 ` Wolfgang Denk
2017-04-04  8:17   ` Joakim Tjernlund
2017-04-04 10:29     ` Wolfgang Denk
2017-04-04  8:55 ` Lukasz Majewski
2017-04-04 10:24   ` Joakim Tjernlund
2017-04-04 10:31     ` Wolfgang Denk
2017-04-04 10:44       ` Joakim Tjernlund
2017-04-04 11:27         ` Wolfgang Denk
2017-04-04 13:21           ` Joakim Tjernlund

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.