bugfix: 修复了无法收到xhci控制器中断的bug

This commit is contained in:
fslongjin
2022-08-24 14:30:23 +08:00
parent ff94280f77
commit e22fe35bb1
5 changed files with 134 additions and 26 deletions

View File

@ -70,6 +70,7 @@ uint pci_write_config(uchar bus, uchar slot, uchar func, uchar offset, uint32_t
// 构造pci配置空间地址
uint address = (uint)((lbus << 16) | (lslot << 11) | (lfunc << 8) | (offset & 0xfc) | ((uint)0x80000000));
io_out32(PORT_PCI_CONFIG_ADDRESS, address);
// 写入数据
io_out32(PORT_PCI_CONFIG_DATA, data);