[U-Boot] [PATCH v3 7/7] cmd_setexpr: allow memory addresses in expressions

Wolfgang Denk wd at denx.de
Sun Mar 21 13:38:03 CET 2010


Dear Frans Meulenbroeks,

In message <1267189219-6712-1-git-send-email-fransmeulenbroeks at gmail.com> you wrote:
> This patch add functionality to use memory addresses in expressions.
> This increases the power of expressions substantially
> 
> It adheres to the standard convemtions: memory addresses can be given in the format
> *address (e.g. *1000)
> 
> Rationale for this change is that it allows masking off bits from a byte that is
> obtained by reading data from e.g. i2c.
> 
> Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks at gmail.com>
> ---
> 
>  common/cmd_setexpr.c |   29 +++++++++++++++++++++++++----
>  1 files changed, 25 insertions(+), 4 deletions(-)

Applied to next branch, thanks.

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 majority of the stupid is  invincible  and  guaranteed  for  all
time.  The  terror  of their tyranny, however, is alleviated by their
lack of consistency."                               - Albert Einstein


More information about the U-Boot mailing list