[Toybox] [PATCH] devmem: new command.
Rob Landley
rob at landley.net
Sat Mar 2 12:10:17 PST 2019
On 3/2/19 1:02 PM, enh via Toybox wrote:
> Intended to replace Android's toolbox `r`, but behaving more like a
> drop-in replacement for busybox's `devmem`.
Applied, but not yet prompted, because question:
Have you seen the peek() and poke() functions in lib that basically do this
except they can handle unaligned access (on platforms that care) and can even do
endianness conversions? Should let you skip a couple of if/else staircases. It
would also let you just atolx_range(1,8) the size input since peek and poke do
read-and-shift of bytes so a peek of size 7 isn't going to bother it. :)
Rob
More information about the Toybox
mailing list