Skip to contentSkip to conversation

CD-ROM Reading

Qemu-devel Mohammed Al-Saleh 2 participants 2 messages Jul 31, 2008

lore
Share & tools
lore
#0 lore raw

Hi all;

I really need help from you.
I know that cd_read_sector function (which is called from ide_atapi_cmd_reply_end) in ide.c will copy data from the CD-ROM to an intermediate buffer, but I could not find out when this buffer is written to the RAM. All of what I can see is after reading data, ide_transfer_start and de_set_irq are called, but then what? how data will go to the RAM? if data will be copied to the RAM implicitly through the interrupt, then where can I find the ultimate function that copies the data to the RAM.
Can any body answer my question? it will be very appreciated.

Thanks,

...Mohammed

--

#1 lore raw
Quoted 2 lines · Mohammed Al-Saleh, le Thu 31 Jul 2008 15:46:13 -0600, a écrit :

where can I find the ultimate function that copies the data to the RAM.

Are you looking for the call to cpu_physical_memory_write() in dma_buf_rw?

Samuel