Skip to content

Commit

Permalink
Set VirtIO IRQ to UART3 IRQ
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen committed Jan 20, 2024
1 parent 599f5c6 commit 6841e7f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ Up Next: Emulate UART Interrupts for Console Input

TODO

[Disable Console Resize event because it crashes VM Guest at startup](https://github.com/lupyuen/ox64-tinyemu/commit/dc869fe6a9a726d413e8a83c56cf40f271c6fe3c)

[We always allow write data](https://github.com/lupyuen/ox64-tinyemu/commit/93cd86a7311986e5063cb0c8e368f89cdae73e27)

# Emulate OpenSBI for System Timer

TODO
Expand Down
2 changes: 1 addition & 1 deletion riscv_machine.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ typedef struct RISCVMachine {
#define DEFAULT_HTIF_BASE_ADDR 0x40008000
#define VIRTIO_BASE_ADDR 0x40010000
#define VIRTIO_SIZE 0x1000
#define VIRTIO_IRQ 1
#define VIRTIO_IRQ 20 // UART3 IRQ
#define PLIC_BASE_ADDR 0xe0000000ul
#define PLIC_SIZE 0x00400000
#define FRAMEBUFFER_BASE_ADDR 0x41000000
Expand Down

0 comments on commit 6841e7f

Please sign in to comment.