* 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
| 9147 | * virtual address range or the direct map. |
| 9148 | */ |
| 9149 | int |
| 9150 | pmap_change_attr(vm_offset_t va, vm_size_t size, int mode) |
| 9151 | { |
| 9152 | int error; |
| 9153 | |
| 9154 | PMAP_LOCK(kernel_pmap); |
| 9155 | error = pmap_change_props_locked(va, size, PROT_NONE, mode, |
| 9156 | MAPDEV_FLUSHCACHE); |
| 9157 | PMAP_UNLOCK(kernel_pmap); |
| 9158 | return (error); |
| 9159 | } |
| 9160 | |
| 9161 | /* |
| 9162 | * Changes the specified virtual address range's protections to those |
no test coverage detected