blob: c58e1e72b82cef8eeec2a4d2cca4d8c317cf890d [file] [log] [blame]
Julian Halld635ad72022-09-20 15:50:35 +01001/*
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
18extern "C" {
19#endif
20
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 */