From: Tolunay Orkun <listmember@orkun.us>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] How do you test a bit set/clear from U-Boot command line/script?
Date: Wed, 26 Apr 2006 18:25:13 -0500 [thread overview]
Message-ID: <44500159.8020506@orkun.us> (raw)
In-Reply-To: <20060426222044.CA140353DAD@atlas.denx.de>
Wolfgang Denk wrote:
> In message <444FDD08.2010101@orkun.us> you wrote:
>
>> I know I can compare a simple value using itest command. e.g.
>>
>> itest *4000 -eq 1234 && echo 'Addr 4000 contains 1234'
>>
>> Now my problem is how can I test a bit of 32 bit quantity (say bit 4)
>> stored at location 4000? This is a question about general hush/u-boot
>> shell capability? It is a generic question...
>>
>
> At the moment there is no command that implements this. As you
> probaly are aware, the "itest" command just implements the following
> operations:
>
I did hope there was some clever way to do this using existing commands.
> Feel free to add new commands for AND, OR, and XOR...
>
I will send a patch. I am not sure how OR or XOR could be useful
though... We do not support multiple operations or store computed
expression results anywhere.
Tolunay
next parent reply other threads:[~2006-04-26 23:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20060426222044.CA140353DAD@atlas.denx.de>
2006-04-26 23:25 ` Tolunay Orkun [this message]
[not found] <20060426200809.6BE30353DAE@atlas.denx.de>
2006-04-26 20:50 ` [U-Boot-Users] How do you test a bit set/clear from U-Boot command line/script? Tolunay Orkun
2006-04-26 22:20 ` Wolfgang Denk
2006-04-26 19:56 Tolunay Orkun
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=44500159.8020506@orkun.us \
--to=listmember@orkun.us \
--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 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.