forked from len0rd/rockbox
hwstub/qeditor: add support for atomic read/writes
The current code assumed that READ/WRITE would produce atomic read/writes for 8/16/32-bit words, which in turned put assumption on the memcpy function. Since some memcpy implementation do not always guarantee such strong assumption, introduce two new operation READ/WRITE_ATOMIC which provide the necessary tools to do correct read and write to register in a single memory access. Change-Id: I37451bd5057bb0dcaf5a800d8aef8791c792a090
This commit is contained in:
parent
794169a18f
commit
cd04a5f1aa
12 changed files with 254 additions and 24 deletions
|
@ -38,8 +38,8 @@ do
|
|||
h = HELP:create_topic("DEV");
|
||||
h:add("This variable redirects to hwstub.dev and provides direct access to the device.");
|
||||
h:add("It contains some information about the device and the following methods.");
|
||||
h:add("* read8/16/32(a) reads a 8/16/32-bit integer at address a");
|
||||
h:add("* write8/16/32(a, v) writes the 8/16/32-bit integer v at address a");
|
||||
h:add("* read8/16/32(a) reads a 8/16/32-bit integer at address a atomically");
|
||||
h:add("* write8/16/32(a, v) writes the 8/16/32-bit integer v at address a atomically");
|
||||
h:add("* print_log() prints the device log");
|
||||
|
||||
h = HELP:create_topic("HW");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue