Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce cache infrastructure #8784

Open
pizi-nordic opened this Issue Jul 6, 2018 · 0 comments

Comments

Projects
None yet
3 participants
@pizi-nordic
Copy link
Collaborator

pizi-nordic commented Jul 6, 2018

TODO:

  • Create system-level API for cache operations:
    - I-Cache: enable/disable, invalidate.
    - D-Cache: enable/disable, writeback, invalidate, writeback + invalidate.

  • Create system-level memory allocation primitives for DMA memory.
    - Create macro ensuring cache-line alignment of static data structures.

  • Enable memory caching in MPU:
    - Flash: Write-Through
    - RAM: WriteBack + Write Allocate.

  • Update platform code and drivers to use Cache API.

Optional:

  • Create API for dynamic memory allocation (aligned to cache line, size always multiple of cache line).
  • Create API for marking memory block non-cacheable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.