can run virtio gpu/block

This commit is contained in:
Yu Chen 2022-06-18 17:50:50 +08:00
parent 07029a2e5f
commit 093db48d04
5 changed files with 17 additions and 4 deletions

View file

@ -1,8 +1,8 @@
pub const CLOCK_FREQ: usize = 12500000;
pub const MMIO: &[(usize, usize)] = &[
(0x1000_0000, 0x1000), // VIRT_UART0 in virt machine
(0x1000_1000, 0x1000), // VIRT_VIRTIO in virt machine
(0x1000_0000, 0xa000), // VIRT_UART0 in virt machine
// (0x1000_1000, 0x9000), // VIRT_VIRTIO with GPU in virt machine
(0x0C00_0000, 0x40_0000), // VIRT_PLIC in virt machine
(0x0010_0000, 0x00_2000), // VIRT_TEST/RTC in virt machine
];