From: Robin Gilks <robin.gilks@tait.co.nz>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] PATCH: itest - an integer compare function
Date: Tue, 06 Jan 2004 17:11:10 +1300 [thread overview]
Message-ID: <3FFA355E.4090306@tait.co.nz> (raw)
Changelog:
Introduce a new command to be used in conditional expressions (such as
hush 'if') to test the value of a memory location.
Supports -eq, -ne, -gt, -lt, -ge, -le
Allows scalars or memory contents (value prefixed by '*')
Makes use of command data width expression of .l, .wm .b for 4, 2 or 1
byte wide comparisons
e.g.
if itest.l *40000 -eq 12345678; then bootm 41000; else bootm 80000; fi
Patch is against u-boot-1.0.0
Note: I'm still concerned that the CONFIG_COMMANDS mask has run out of
bits - maybe time for a different mechanism as I'm sure the bit I've
used has gone by now!!
--
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: u-boot-itest.patch
Type: text/x-diff
Size: 5219 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20040106/447446f1/attachment.patch
next reply other threads:[~2004-01-06 4:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-06 4:11 Robin Gilks [this message]
2004-02-06 23:34 ` [U-Boot-Users] PATCH: itest - an integer compare function Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3FFA355E.4090306@tait.co.nz \
--to=robin.gilks@tait.co.nz \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox