| 365 | } |
| 366 | |
| 367 | int |
| 368 | subyte(volatile void *base, int byte) |
| 369 | { |
| 370 | |
| 371 | if ((uintptr_t)base + sizeof(uint8_t) < (uintptr_t)base || |
| 372 | (uintptr_t)base + sizeof(uint8_t) > VM_MAXUSER_ADDRESS) |
| 373 | return (-1); |
| 374 | if (fast_copyout && subyte_fast_tramp(base, byte, pmap_get_kcr3()) == 0) |
| 375 | return (0); |
| 376 | return (cp_slow0((vm_offset_t)base, sizeof(u_char), true, subyte_slow0, |
| 377 | &byte) != 0 ? -1 : 0); |
| 378 | } |
| 379 | |
| 380 | static void |
| 381 | suword16_slow0(vm_offset_t kva, void *arg) |
no test coverage detected