Merge "locks: bakery: add a DMB to the 'read_cache_op' macro" into integration

This commit is contained in:
Soby Mathew 2020-03-12 13:23:00 +00:00 committed by TrustedFirmware Code Review
commit 765cac8db4
1 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,6 @@
/*
* Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2020, NVIDIA Corporation. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
@ -77,6 +78,8 @@ static inline void read_cache_op(uintptr_t addr, bool cached)
{
if (cached)
dccivac(addr);
dmbish();
}
/* Helper function to check if the lock is acquired */