MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vatpit_nmisc_handler

Function vatpit_nmisc_handler

freebsd/amd64/vmm/io/vatpit.c:421–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419}
420
421int
422vatpit_nmisc_handler(struct vm *vm, int vcpuid, bool in, int port, int bytes,
423 uint32_t *eax)
424{
425 struct vatpit *vatpit;
426
427 vatpit = vm_atpit(vm);
428
429 if (in) {
430 VATPIT_LOCK(vatpit);
431 if (vatpit_get_out(vatpit, 2))
432 *eax = TMR2_OUT_STS;
433 else
434 *eax = 0;
435
436 VATPIT_UNLOCK(vatpit);
437 }
438
439 return (0);
440}
441
442struct vatpit *
443vatpit_init(struct vm *vm)

Callers

nothing calls this directly

Calls 2

vm_atpitFunction · 0.85
vatpit_get_outFunction · 0.85

Tested by

no test coverage detected