aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandrine Bailleux <sandrine.bailleux@arm.com>2020-07-08 08:55:18 +0000
committerTrustedFirmware Code Review <review@review.trustedfirmware.org>2020-07-08 08:55:18 +0000
commit8499afc44a1642b50fce554d4fdc9356d07d53a0 (patch)
tree39d20b7fa667cb25499839fba56cfe69afcc1fe7
parentfd7c7978cfee3138a645a2014b02562f94aef141 (diff)
parent986de72ace2591794f20ecce499593c6149c328e (diff)
downloadtf-a-tests-8499afc44a1642b50fce554d4fdc9356d07d53a0.tar.gz
Merge "Add explicit barrier before sev() in tftf_send_event_common API"
-rw-r--r--lib/events/events.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/events/events.c b/lib/events/events.c
index 42130d5..5919d3b 100644
--- a/lib/events/events.c
+++ b/lib/events/events.c
@@ -25,6 +25,11 @@ static void send_event_common(event_t *event, unsigned int inc)
event->cnt += inc;
spin_unlock(&event->lock);
+ /*
+ * Make sure the cnt increment is observable by all CPUs
+ * before the event is sent.
+ */
+ dsbsy();
sev();
}