2015-09-19 04:36:57 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2015 Wind River Systems, Inc.
|
|
|
|
*
|
2017-01-19 09:01:01 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2015-09-19 04:36:57 +08:00
|
|
|
*/
|
|
|
|
|
2018-09-15 01:43:44 +08:00
|
|
|
#ifndef ZEPHYR_ARCH_X86_INCLUDE_CACHE_PRIVATE_H_
|
|
|
|
#define ZEPHYR_ARCH_X86_INCLUDE_CACHE_PRIVATE_H_
|
2015-09-19 04:36:57 +08:00
|
|
|
|
|
|
|
#include <cache.h>
|
|
|
|
|
2016-01-23 01:38:49 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2015-09-19 04:36:57 +08:00
|
|
|
extern int _is_clflush_available(void);
|
2018-11-17 11:06:59 +08:00
|
|
|
extern void _cache_flush_wbinvd(vaddr_t addr, size_t len);
|
2015-09-19 04:36:57 +08:00
|
|
|
extern size_t _cache_line_size_get(void);
|
|
|
|
|
2016-01-23 01:38:49 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2018-09-15 01:43:44 +08:00
|
|
|
#endif /* ZEPHYR_ARCH_X86_INCLUDE_CACHE_PRIVATE_H_ */
|