/* SPDX-License-Identifier: BSD-2-Clause */ /* * Copyright (c) 2014, STMicroelectronics International N.V. */ #ifndef TEE_INTERNAL_API_EXTENSIONS_H #define TEE_INTERNAL_API_EXTENSIONS_H /* trace support */ #include #include #include #include void tee_user_mem_mark_heap(void); size_t tee_user_mem_check_heap(void); /* Hint implementation defines */ #define TEE_USER_MEM_HINT_NO_FILL_ZERO 0x80000000 /* * Cache maintenance support (TA requires the CACHE_MAINTENANCE property) * * TEE_CacheClean() Write back to memory any dirty data cache lines. The line * is marked as not dirty. The valid bit is unchanged. * * TEE_CacheFlush() Purges any valid data cache lines. Any dirty cache lines * are first written back to memory, then the cache line is * invalidated. * * TEE_CacheInvalidate() Invalidate any valid data cache lines. Any dirty line * are not written back to memory. */ TEE_Result TEE_CacheClean(char *buf, size_t len); TEE_Result TEE_CacheFlush(char *buf, size_t len); TEE_Result TEE_CacheInvalidate(char *buf, size_t len); #endif