1 /* 2 * Copyright (c) 2001-2019, Arm Limited and Contributors. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 /*! 8 @addtogroup cc_pal_barrier 9 @{ 10 */ 11 12 /*! 13 @file 14 @brief This file contains the definitions and APIs for memory-barrier 15 implementation. 16 17 This is a placeholder for platform-specific memory barrier implementation. 18 The secure core driver should include a memory barrier, before and after 19 the last word of the descriptor, to allow correct order between the words 20 and different descriptors. 21 */ 22 23 24 #ifndef _CC_PAL_BARRIER_H 25 #define _CC_PAL_BARRIER_H 26 27 28 /*! 29 This macro puts the memory barrier after the write operation. 30 31 @return None 32 */ 33 34 void CC_PalWmb(void); 35 36 /*! 37 This macro puts the memory barrier before the read operation. 38 39 @return None 40 */ 41 void CC_PalRmb(void); 42 43 /*! 44 @} 45 */ 46 #endif 47 48