Add a missing suffix that was causing a whole word to get loaded instead
of the proper 8 or 16 bits when the macro was expanded for those sizes. Fixes a hang in the armv7 kernel. Submitted by: Thomas Skibo Pointy hat: ian@
This commit is contained in:
parent
65c5bff387
commit
638dcf6ecf
@ -196,7 +196,7 @@ ATOMIC_ACQ_REL_LONG(clear)
|
|||||||
\
|
\
|
||||||
__asm __volatile( \
|
__asm __volatile( \
|
||||||
"1: ldrex" SUF " %[tmp], [%[ptr]] \n" \
|
"1: ldrex" SUF " %[tmp], [%[ptr]] \n" \
|
||||||
" ldr %[ret], [%[oldv]] \n" \
|
" ldr" SUF " %[ret], [%[oldv]] \n" \
|
||||||
" teq %[tmp], %[ret] \n" \
|
" teq %[tmp], %[ret] \n" \
|
||||||
" ittee ne \n" \
|
" ittee ne \n" \
|
||||||
" str" SUF "ne %[tmp], [%[oldv]] \n" \
|
" str" SUF "ne %[tmp], [%[oldv]] \n" \
|
||||||
|
Loading…
Reference in New Issue
Block a user