aarch64: mmu: dynamic mapping support

Introduce a remove_map() to ... remove a mapping.

Add a use count to the page table pool so pages can be dynamically
allocated, deallocated and reused.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
This commit is contained in:
Nicolas Pitre 2021-01-20 23:06:38 -05:00 committed by Anas Nashif
commit 459bfed9ea
2 changed files with 97 additions and 17 deletions

View file

@ -166,7 +166,7 @@ struct arm_mmu_config {
struct arm_mmu_ptables {
uint64_t *xlat_tables;
unsigned int next_table;
uint16_t use_count[CONFIG_MAX_XLAT_TABLES];
};
/* Convenience macros to represent the ARMv8-A-specific