diff options
author | Marcin Bukat <marcin.bukat@gmail.com> | 2014-11-18 23:27:26 +0100 |
---|---|---|
committer | Marcin Bukat <marcin.bukat@gmail.com> | 2014-11-18 23:30:44 +0100 |
commit | cd04a5f1aadc8e2ec4e787f5ba4cc8c38a579314 (patch) | |
tree | 63e9f095451aeba0139152c8742d0af67413690a /utils/hwstub/stub/SOURCES | |
parent | 794169a18f644eea32de20b26646381137545e2d (diff) | |
download | rockbox-cd04a5f1aadc8e2ec4e787f5ba4cc8c38a579314.tar.gz rockbox-cd04a5f1aadc8e2ec4e787f5ba4cc8c38a579314.zip |
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
Diffstat (limited to 'utils/hwstub/stub/SOURCES')
-rw-r--r-- | utils/hwstub/stub/SOURCES | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/hwstub/stub/SOURCES b/utils/hwstub/stub/SOURCES index 1b0b56072d..c91580c966 100644 --- a/utils/hwstub/stub/SOURCES +++ b/utils/hwstub/stub/SOURCES | |||
@@ -2,9 +2,11 @@ | |||
2 | asm/arm/memcpy.S | 2 | asm/arm/memcpy.S |
3 | asm/arm/memmove.S | 3 | asm/arm/memmove.S |
4 | asm/arm/memset.S | 4 | asm/arm/memset.S |
5 | asm/arm/atomic_rw.S | ||
5 | #elif defined(CPU_MIPS) | 6 | #elif defined(CPU_MIPS) |
6 | asm/mips/memcpy.S | 7 | asm/mips/memcpy.S |
7 | asm/mips/memset.S | 8 | asm/mips/memset.S |
9 | asm/mips/atomic_rw.S | ||
8 | #else | 10 | #else |
9 | #error "Unimplemented ISA" | 11 | #error "Unimplemented ISA" |
10 | #endif | 12 | #endif |