[arch][ops] define some global ARCH macros to be a bit more scoped

Instead of ICACHE/DCACHE/UCACHE, add the ARCH_CACHE_FLAG_ prefix to be a
little cleaner and not collide with anything else.

No functional change.
This commit is contained in:
Travis Geiselbrecht
2024-05-09 19:28:56 -07:00
parent 6a3db09e55
commit d3cd5be13e
7 changed files with 28 additions and 29 deletions

View File

@@ -92,7 +92,7 @@ void arch_early_init(void) {
#endif
#if ARM_WITH_CACHE
arch_enable_cache(UCACHE);
arch_enable_cache(ARCH_CACHE_FLAG_UCACHE);
#endif
}
@@ -111,7 +111,7 @@ void arch_init(void) {
void arch_quiesce(void) {
#if ARM_WITH_CACHE
arch_disable_cache(UCACHE);
arch_disable_cache(ARCH_CACHE_FLAG_UCACHE);
#endif
}