mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-02 04:20:28 +00:00
FloppyDiskDevice: Fixed hang on wait_for_irq() (#458)
It turns out that the `SenseInterrupt` command is actually very important! The system hangs if it's not there! Whoops...!
This commit is contained in:
parent
8a91b90258
commit
ad909e7c3f
Notes:
sideshowbarker
2024-07-19 12:38:22 +09:00
Author: https://github.com/Quaker762 Commit: https://github.com/SerenityOS/serenity/commit/ad909e7c3f2 Pull-request: https://github.com/SerenityOS/serenity/pull/458
1 changed files with 1 additions and 2 deletions
|
@ -198,7 +198,6 @@ bool FloppyDiskDevice::read_sectors_with_dma(u16 lba, u16 count, u8* outbuf)
|
|||
static_cast<void>(pcn);
|
||||
|
||||
memcpy(outbuf, m_dma_buffer_page->paddr().as_ptr(), 512 * count);
|
||||
//kprintf("fdc: 0x%x\n", *outbuf);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -400,7 +399,7 @@ bool FloppyDiskDevice::recalibrate()
|
|||
wait_for_irq();
|
||||
m_interrupted = false;
|
||||
|
||||
send_byte(FloppyCommand::Recalibrate);
|
||||
send_byte(FloppyCommand::SenseInterrupt);
|
||||
u8 st0 = read_byte();
|
||||
u8 pcn = read_byte();
|
||||
static_cast<void>(st0);
|
||||
|
|
Loading…
Reference in a new issue