commit | 257404a14327bdc402b46306eca1dcd71f8e454a | [log] [tgz] |
---|---|---|
author | Daniel Leung <daniel.leung@intel.com> | Mon Aug 21 12:32:21 2023 -0700 |
committer | Anas Nashif <anas.nashif@intel.com> | Sat Aug 26 16:50:40 2023 -0400 |
tree | 43c8540409c4d3f233920570172951b6c76c039e | |
parent | 614e64325d483744834bd0c53d941dcad6013ba4 [diff] |
xtensa: mmu: init: only clear enough entries in way 6 During MMU initialization, we clear TLB way 6 to remove all identity mapping. Depending on CPU configuration, there are certain number of entries per way. So use the number from core-isa.h to clear enough entries instead of hard-coded number 8. Specifying an entry number outside of permitted range may result in CPU reacting in weird way so better to avoid that. Signed-off-by: Daniel Leung <daniel.leung@intel.com>