Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Michael Shavit hit a problem with 8 byte wide writes, so switch from
signed atolx() to unsigned strtoul() which has the side effect of not parsing the kmg suffixes. (Poke me if I should mention that in the help text...) Test cases (with results from another implementation): $ devmem 0x000000008b300000 8 0x8FFFFFFFFFFFFFFF $ devmem 0x000000008b300000 8 0x8fffffffffffffff $ devmem 0x000000008b300000 8 500k $ devmem 0x000000008b300000 8 0x0000000007d000 $ devmem 0x000000008b300000 8 0xFFFFFFFFFFFFFFFF $ devmem 0x000000008b300000 8 0xffffffffffffffff $ devmem 0x000000008b300000 4 0xFFFFFFFF $ devmem 0x000000008b300000 4 0xffffffff $ devmem 0x000000008b300000 4 0x1FFFFFFFF devmem: data: 8589934591 exceeds write width: 4 Dunno how to set up a qemu instance that can devmem for testing under mkroot, so no tests/devmem.test yet. (And it wouldn't be target agnostic like the rest of the tests anyway. Hmmm...)
- Loading branch information