Home
last modified time | relevance | path

Searched hist:af2a4877a76498a03edb12908164978a7ab0c7fe (Results 1 – 1 of 1) sorted by relevance

/rk3399_ARM-atf/plat/rpi/common/
H A Drpi3_pm.caf2a4877a76498a03edb12908164978a7ab0c7fe Sat Mar 21 11:22:13 UTC 2020 Andre Przywara <andre.przywara@arm.com> 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>