|
Nexus Embedded Platform 0.1.0
Statically assembled reusable embedded mechanisms
|
Explicit owned Cortex-M7 cold cache transitions. More...
#include <stdbool.h>#include <stdint.h>Go to the source code of this file.
Data Structures | |
| struct | nx_arch_cache_control_t |
| Caller-owned cache responsibility and selector recovery. More... | |
Macros | |
| #define | NX_ARCH_CACHE_DATA 1U |
| Data-cache ownership bit, independent of the hardware CCR layout. | |
| #define | NX_ARCH_CACHE_INSTRUCTION 2U |
| Instruction-cache ownership bit. | |
Enumerations | |
| enum | nx_arch_cache_control_result_t { NX_ARCH_CACHE_OK = 0 , NX_ARCH_CACHE_INVALID , NX_ARCH_CACHE_CONTEXT , NX_ARCH_CACHE_UNSUPPORTED , NX_ARCH_CACHE_STATE , NX_ARCH_CACHE_IO } |
| Cold-transition admission or execution result. More... | |
Functions | |
| nx_arch_cache_control_result_t | nx_arch_cache_cold_enable (nx_arch_cache_control_t *control, uint32_t mask) |
| Admit cold caches and enable the explicitly selected ones. | |
| nx_arch_cache_control_result_t | nx_arch_cache_cold_disable (nx_arch_cache_control_t *control) |
| Clean and disable caches owned by this control object. | |
Explicit owned Cortex-M7 cold cache transitions.
Definition in file cache_control.h.
| #define NX_ARCH_CACHE_DATA 1U |
Data-cache ownership bit, independent of the hardware CCR layout.
Definition at line 14 of file cache_control.h.
| #define NX_ARCH_CACHE_INSTRUCTION 2U |
Instruction-cache ownership bit.
Definition at line 16 of file cache_control.h.
Cold-transition admission or execution result.
| Enumerator | |
|---|---|
| NX_ARCH_CACHE_OK | |
| NX_ARCH_CACHE_INVALID | |
| NX_ARCH_CACHE_CONTEXT | |
| NX_ARCH_CACHE_UNSUPPORTED | |
| NX_ARCH_CACHE_STATE | |
| NX_ARCH_CACHE_IO | |
Definition at line 18 of file cache_control.h.
| nx_arch_cache_control_result_t nx_arch_cache_cold_disable | ( | nx_arch_cache_control_t * | control | ) |
Clean and disable caches owned by this control object.
| [in,out] | control | Same live object passed to cold_enable. |
| nx_arch_cache_control_result_t nx_arch_cache_cold_enable | ( | nx_arch_cache_control_t * | control, |
| uint32_t | mask ) |
Admit cold caches and enable the explicitly selected ones.
| [in,out] | control | Exclusively owned, initially empty control object. |
| [in] | mask | Nonzero combination of DATA and INSTRUCTION bits. |