fix keyboard input bug

This commit is contained in:
hustccc 2021-01-12 20:39:05 +09:00
parent b066e30130
commit 91d478a274
2 changed files with 2 additions and 2 deletions

View File

@ -74,4 +74,4 @@ main(unsigned long hartid, unsigned long dtb_pa)
printf("hart 1 init done\n");
}
scheduler();
}
}

View File

@ -268,7 +268,7 @@ void device_init(unsigned long pa, uint64 hartid) {
uint32 *hart0_m_int_enable_hi = (uint32*)(PLIC_MENABLE(hartid) + 0x04);
*(hart0_m_int_enable_hi) = (1 << 0x1);
// *(uint32*)0x0c002004 = (1 << 0x1);
sbi_set_extern_interrupt((uint64)supervisor_external_handler);
// sbi_set_extern_interrupt((uint64)supervisor_external_handler);
#else
*((uint32*)0x0c002080) = (1 << 10);
*((uint8*)0x10000004) = 0x0b;