1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 21:07:36 +00:00

SB16: Map the DMA buffer in kernelspace so we can write to it

This broke with the >3GB paging overhaul. It's no longer possible to
write directly to physical addresses below the 8MB mark. Physical pages
need to be mapped into kernel VM by using a Region.

Fixes #1099.
This commit is contained in:
Andreas Kling 2020-01-20 13:07:29 +01:00
parent a0b716cfc5
commit b52d0afecf
2 changed files with 9 additions and 5 deletions

View file

@ -63,7 +63,7 @@ private:
void dsp_write(u8 value);
u8 dsp_read();
RefPtr<PhysicalPage> m_dma_buffer_page;
OwnPtr<Region> m_dma_region;
int m_major_version { 0 };
WaitQueue m_irq_queue;