mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:07:34 +00:00
Kernel: Enable IRQs before sending commands to devices
Without this fix, a very fast IRQ can preempt the enable_irq() call, leaving that IRQ being unhandled.
This commit is contained in:
parent
f33fb151b4
commit
a3fa40fc07
3 changed files with 19 additions and 8 deletions
|
@ -85,6 +85,8 @@ private:
|
|||
bool ata_read_sectors(u32, u16, u8*, bool);
|
||||
bool ata_write_sectors(u32, u16, const u8*, bool);
|
||||
|
||||
inline void prepare_for_irq();
|
||||
|
||||
// Data members
|
||||
u8 m_channel_number { 0 }; // Channel number. 0 = master, 1 = slave
|
||||
IOAddress m_io_base;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue