From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robin Gilks Date: Thu, 18 Dec 2003 17:20:34 +1300 Subject: [U-Boot-Users] CFG_CMD_.... configuration space running out!! In-Reply-To: <1071713256.2552.10.camel@smoke.cideas.com> References: <3FE0E1DF.208@tait.co.nz> <1071713256.2552.10.camel@smoke.cideas.com> Message-ID: <3FE12B12.7070509@tait.co.nz> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Jon Diekema wrote: > On Thu, 2003-12-18 at 07:08, Robin Gilks wrote: > >>test syntax as per binary integer comparisons with the option of a unary >>indirection operator on either expression. >>eg. 'test *40000 -eq 12345678' >>checks location 40000 for the value 12345678. I've only implemented 32 >>bit word indirection - does anyone think it useful to provide half-word >>and byte as well - in which case what should the syntax look like? > > > How about using something similar to what the i2c commands use? > > .4 4 byte addr > .2 2 byte addr > .1 1 byte addr > > or maybe > > .l 4 byte addr > .w 2 byte addr > .b 1 byte addr > > If . isn't specified, then default to the .4 or .l > address size. > > Potential examples: > > test *40000.4 -eq 12345678 > test *40000 -eq 12345678 > test *40000.2 -eq 1234 > test *40000.1 -eq 12 As it happens, the simple_strtoul() parsing is quite happy with a trailing '.' so either should code up easily enough. Thanks for the input... Last day before the break tomorrow so we'll see what gets done :-)) -- Robin Gilks Senior Design Engineer Phone: (+64)(3) 357 1569 Tait Electronics Fax : (+64)(3) 359 4632 PO Box 1645 Christchurch Email : robin.gilks at tait.co.nz New Zealand