添加中断 (#370)

* 添加中断

* dhcp更改为全局socketset

* 解决异常中断的问题,使得能够使用中断来处理网卡数据

---------

Co-authored-by: longjin <longjin@RinGoTek.cn>
This commit is contained in:
YJwu2023
2023-09-21 23:23:57 +08:00
committed by GitHub
parent 6b4e7a2972
commit 0dd8ff4332
10 changed files with 120 additions and 54 deletions

View File

@ -3,7 +3,7 @@ use crate::driver::pci::pci_irq::TriggerMode;
/// @param processor 目标CPU ID号
/// @return MSI Message Address
pub fn ia64_pci_get_arch_msi_message_address(processor: u16) -> u32 {
0xfee00000 as u32 | ((processor as u32) << 12)
0xfee00000 | ((processor as u32) << 12)
}
/// @brief 获得MSI Message Data
/// @param vector 分配的中断向量号