mirror of
https://github.com/google/pebble.git
synced 2026-02-16 10:16:50 -05:00
spelling: cacheable
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
@@ -209,11 +209,11 @@ void mpu_set_task_configurable_regions(MemoryRegion_t *memory_regions,
|
||||
|
||||
}
|
||||
|
||||
bool mpu_memory_is_cachable(const void *addr) {
|
||||
bool mpu_memory_is_cacheable(const void *addr) {
|
||||
if (!dcache_is_enabled()) {
|
||||
return false;
|
||||
}
|
||||
// TODO PBL-37601: We're assuming only SRAM is cachable for now for simplicity sake. We should
|
||||
// TODO PBL-37601: We're assuming only SRAM is cacheable for now for simplicity sake. We should
|
||||
// account for MPU configuration and also the fact that memory-mapped QSPI access goes through the
|
||||
// cache.
|
||||
return ((uint32_t)addr >= SRAM_BASE) && ((uint32_t)addr < SRAM_END);
|
||||
|
||||
Reference in New Issue
Block a user