[U-Boot] setexpr and memory access

Frans Meulenbroeks fransmeulenbroeks at gmail.com
Wed Feb 24 14:14:42 CET 2010


I feel sometimes it could be convenient to use setexpr to use a memory
location as argument.
The code for that is pretty trivial but the question (and reason for
mailing this instead of just submitting the patch) is the syntax of
the command.

setexpr uses A op B and one of the possibilities for op is a *. If we
also allow a * to dereference things (like done in itest) we could get
something like
setexpr result *3 * *4
Not sure if that is a desirable syntax.

Your opinion on this extension and syntax is appreciated.

Frans


More information about the U-Boot mailing list