return -1;
}
- PrintDebug("IN on port %d (0x%x)\n", io_info->port, io_info->port);
+ //PrintDebug("IN on port %d (0x%x)\n", io_info->port, io_info->port);
if (io_info->sz8) {
read_size = 1;
}
- if (hook->read(io_info->port, &(info->vm_regs.rax), read_size) != read_size) {
+ if (hook->read(io_info->port, &(info->vm_regs.rax), read_size, hook->priv_data) != read_size) {
// not sure how we handle errors.....
return -1;
}
return -1;
}
- PrintDebug("INS on port %d (0x%x)\n", io_info->port, io_info->port);
+ //PrintDebug("INS on port %d (0x%x)\n", io_info->port, io_info->port);
if (io_info->sz8) {
read_size = 1;
// either page fault or gpf...
}
- if (hook->read(io_info->port, (char*)host_addr, read_size) != read_size) {
+ if (hook->read(io_info->port, (char*)host_addr, read_size, hook->priv_data) != read_size) {
// not sure how we handle errors.....
return -1;
}
return -1;
}
- PrintDebug("OUT on port %d (0x%x)\n", io_info->port, io_info->port);
+ //PrintDebug("OUT on port %d (0x%x)\n", io_info->port, io_info->port);
if (io_info->sz8) {
write_size = 1;
}
- if (hook->write(io_info->port, &(info->vm_regs.rax), write_size) != write_size) {
+ if (hook->write(io_info->port, &(info->vm_regs.rax), write_size, hook->priv_data) != write_size) {
// not sure how we handle errors.....
return -1;
}
return -1;
}
- PrintDebug("OUTS on port %d (0x%x)\n", io_info->port, io_info->port);
+ //PrintDebug("OUTS on port %d (0x%x)\n", io_info->port, io_info->port);
if (io_info->sz8) {
write_size = 1;
// either page fault or gpf...
}
- if (hook->write(io_info->port, (char*)host_addr, write_size) != write_size) {
+ if (hook->write(io_info->port, (char*)host_addr, write_size, hook->priv_data) != write_size) {
// not sure how we handle errors.....
return -1;
}