On 2015/6/4 22:57, Michael Tokarev wrote:
04.06.2015 17:51, Shannon Zhao wrote:
>Yeah, but I think something like below would work.
>
>     cpu_exit_irq = &qemu_allocate_irq(cpu_request_exit, NULL, 0);
>     DMA_init(0, cpu_exit_irq);
NO!!!:)

Hmm...really?

This is used by DMA_schedule.

void DMA_schedule(int nchan)
{
    struct dma_cont *d = &dma_controllers[nchan > 3];

    qemu_irq_pulse(*d->cpu_request_exit);
}

--
Shannon

Reply via email to