1
0
mirror of https://github.com/sgmarz/osblog.git synced 2024-11-24 02:16:19 +04:00

Added PLIC

This commit is contained in:
Stephen Marz 2019-11-18 19:14:16 -05:00
parent fb86ff06da
commit 7faf580765

View File

@ -369,7 +369,7 @@ extern "C" fn kmain() {
// that won't mask all interrupts. // that won't mask all interrupts.
println!("Setting up interrupts and PLIC..."); println!("Setting up interrupts and PLIC...");
// We lower the threshold wall so our interrupts can jump over it. // We lower the threshold wall so our interrupts can jump over it.
plic::set_threshold(1); plic::set_threshold(0);
// VIRTIO = [1..8] // VIRTIO = [1..8]
// UART0 = 10 // UART0 = 10
// PCIE = [32..35] // PCIE = [32..35]