| 385 | } |
| 386 | |
| 387 | int |
| 388 | suword16(volatile void *base, int word) |
| 389 | { |
| 390 | |
| 391 | if ((uintptr_t)base + sizeof(uint16_t) < (uintptr_t)base || |
| 392 | (uintptr_t)base + sizeof(uint16_t) > VM_MAXUSER_ADDRESS) |
| 393 | return (-1); |
| 394 | if (fast_copyout && suword16_fast_tramp(base, word, pmap_get_kcr3()) |
| 395 | == 0) |
| 396 | return (0); |
| 397 | return (cp_slow0((vm_offset_t)base, sizeof(int16_t), true, |
| 398 | suword16_slow0, &word) != 0 ? -1 : 0); |
| 399 | } |
| 400 | |
| 401 | static void |
| 402 | suword_slow0(vm_offset_t kva, void *arg) |
no test coverage detected