1 /* 2 * Copyright (c) 2022, Arm Limited and Contributors. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef TF_A_LIB_UTILS_H 8 #define TF_A_LIB_UTILS_H 9 10 #include <stddef.h> 11 #include <string.h> 12 13 /** 14 * A stub version of the tf-a lib/utils.h 15 */ 16 17 #ifdef __cplusplus 18 extern "C" { 19 #endif 20 zeromem(void * mem,size_t length)21static inline void zeromem(void *mem, size_t length) 22 { 23 memset(mem, 0, length); 24 } 25 26 #ifdef __cplusplus 27 } 28 #endif 29 30 #endif /* TF_A_LIB_UTILS_H */ 31