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:
parent
cfcae3f86f
commit
54ac2713d5
@ -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:
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user