create_desktop in kernel can run correctly

This commit is contained in:
Yu Chen 2022-06-20 22:41:20 +08:00
parent 5b0c372507
commit c348cbdbfa
5 changed files with 38 additions and 23 deletions

View file

@ -1,10 +1,10 @@
pub const CLOCK_FREQ: usize = 12500000;
pub const MMIO: &[(usize, usize)] = &[
(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
// (0x0010_0000, 0x00_2000), // VIRT_TEST/RTC in virt machine
(0x2000000, 0x10000),
(0xc000000, 0x210000), // VIRT_PLIC in virt machine
(0x10000000, 0x9000), // VIRT_UART0 with GPU in virt machine
];
pub type BlockDeviceImpl = crate::drivers::block::VirtIOBlock;