* Changes the specified virtual address range's memory type to that given by * the parameter "mode". The specified virtual address range must be * completely contained within either the direct map or the kernel map. If * the virtual address range is contained within the kernel map, then the * memory type for each of the corresponding ranges of the direct map is also * changed. (The corresp
| 6081 | * virtual address range or the direct map. |
| 6082 | */ |
| 6083 | int |
| 6084 | pmap_change_attr(vm_offset_t va, vm_size_t size, int mode) |
| 6085 | { |
| 6086 | int error; |
| 6087 | |
| 6088 | PMAP_LOCK(kernel_pmap); |
| 6089 | error = pmap_change_attr_locked(va, size, mode); |
| 6090 | PMAP_UNLOCK(kernel_pmap); |
| 6091 | return (error); |
| 6092 | } |
| 6093 | |
| 6094 | static int |
| 6095 | pmap_change_attr_locked(vm_offset_t va, vm_size_t size, int mode) |
no test coverage detected