bochs: fix segmentation fault in DMA controller
Change-Id: I10c3e7e89d41abdcaea374ea01a2d1613d013e4c
This commit is contained in:
@ -699,6 +699,10 @@ void bx_dma_c::raise_HLDA(void)
|
||||
// wait till they're unmasked
|
||||
return;
|
||||
}
|
||||
if (!BX_DMA_THIS s[ma_sl].chan[channel].used) {
|
||||
//BX_PANIC(("hlda: channel %d not connected to device", channel));
|
||||
return;
|
||||
}
|
||||
|
||||
//BX_DEBUG(("hlda: OK in response to DRQ(%u)", (unsigned) channel));
|
||||
phy_addr = (BX_DMA_THIS s[ma_sl].chan[channel].page_reg << 16) |
|
||||
|
||||
Reference in New Issue
Block a user