arm-trusted-firmware/plat/rpi
Andre Przywara af2a4877a7 rpi: rpi3_pwr_domain_on(): Use MMIO accessor
When writing to arbitrary locations in memory using a constructed
pointer, there is no guarantee that the compiler does not optimise away
the access, since it cannot detect any dependency.

One typical solution is to use the "volatile" keyword, but using MMIO
accessors in usually the better answer, to avoid torn writes.

Replace the usage of an array with such an MMIO accessor function in
rpi3_pwr_domain_on(), to make sure the write is really happening.

Change-Id: Ia18163c95e92f1557471089fd18abc6dc7fee0c7
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
2020-04-01 15:56:26 +01:00
..
common rpi: rpi3_pwr_domain_on(): Use MMIO accessor 2020-04-01 15:56:26 +01:00
rpi3 rpi: move plat_helpers.S to common 2020-04-01 15:56:26 +01:00
rpi4 rpi: move plat_helpers.S to common 2020-04-01 15:56:26 +01:00