Skip to content

Commit

Permalink
TODO: Clear the interrupt after reading keypress
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen committed Jan 20, 2024
1 parent 7e70a90 commit 6b3e9c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions virtio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1336,6 +1336,9 @@ int virtio_console_write_data(VIRTIODevice *s, const uint8_t *buf, int buf_len)
printf("[%c]\n", buf[0]); ////
// s->int_status |= 1;
// set_irq(s->irq, 1);

// TODO: Clear the interrupt after reading keypress
// set_irq(s->irq, 0);
#ifdef NOTUSED
int queue_idx = 0;
QueueState *qs = &s->queue[queue_idx];
Expand Down

0 comments on commit 6b3e9c9

Please sign in to comment.