summaryrefslogtreecommitdiff
path: root/bootwrapper/big-little-mp1.mxscript
diff options
context:
space:
mode:
authorDave Martin <dave.martin@linaro.org>2012-02-06 18:00:36 -0800
committerDietmar Eggemann <dietmar.eggemann@arm.com>2012-05-23 12:44:35 +0100
commitc13b1a358650170433e068bc6cec9361f4959340 (patch)
tree2187ea8277e3cf96f82e8dcc488a712908ce12ba /bootwrapper/big-little-mp1.mxscript
parente37385b2dc9ef04d65986ccd2fa36100c72d7564 (diff)
switcher: Fix invalid use of memcpy() on I/O memory
The size and order etc. of memory accesses performed by memcpy() is undefined, so we can't make valid use of it to save and restore peripheral registers which don't implement full memory-like semantics, except as may be permitted by luck. In praticular, the GIC rejects byte accesses to its registers, whereas it is entirely valid for memcpy() to perform byte accesses. This patch replaces the invalid use of memcpy() for GIC save/restore with trivial dedicated functions which preform volatile word accesses only.
Diffstat (limited to 'bootwrapper/big-little-mp1.mxscript')
0 files changed, 0 insertions, 0 deletions