mirror of
https://github.com/google/pebble.git
synced 2025-06-07 02:33:12 +00:00
spelling: cacheable
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
5489a4c0d3
commit
71513f263b
4 changed files with 10 additions and 10 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue