Add VM_MEMATTR_CACHEABLE support for AIM, for parity with Book-E.

Not used right now, but may be in the future anyway.
This commit is contained in:
Justin Hibbits 2016-03-01 00:50:39 +00:00
parent cfcae3f86f
commit 54ac2713d5
2 changed files with 4 additions and 0 deletions

View File

@ -384,6 +384,8 @@ moea_calc_wimg(vm_paddr_t pa, vm_memattr_t ma)
switch (ma) {
case VM_MEMATTR_UNCACHEABLE:
return (PTE_I | PTE_G);
case VM_MEMATTR_CACHEABLE:
return (PTE_M);
case VM_MEMATTR_WRITE_COMBINING:
case VM_MEMATTR_WRITE_BACK:
case VM_MEMATTR_PREFETCHABLE:

View File

@ -434,6 +434,8 @@ moea64_calc_wimg(vm_paddr_t pa, vm_memattr_t ma)
switch (ma) {
case VM_MEMATTR_UNCACHEABLE:
return (LPTE_I | LPTE_G);
case VM_MEMATTR_CACHEABLE:
return (LPTE_M);
case VM_MEMATTR_WRITE_COMBINING:
case VM_MEMATTR_WRITE_BACK:
case VM_MEMATTR_PREFETCHABLE: