How do you allocating memory to AHCI_BASE?I didn't design malloc and free functions, and these in std will produce an linking error. So I create an array of uint8 and transfer its address to AHCI_BASE.Octocontrabass wrote:Really? It successfully reads the disk when I do that. Where are you allocating this memory area?
Have you tried using debug tracing? For example, try adding "-d trace:handle_cmd_*" to your QEMU command line. There's a list of available trace events here.
AHCI can't read and write blocks
Re: AHCI can't read and write blocks
-
- Member
- Posts: 5563
- Joined: Mon Mar 25, 2013 7:01 pm
Re: AHCI can't read and write blocks
Since you don't have an allocator yet, I picked an unused address in my VM's memory map.
How big is your array? It needs to be around 300kB since the wiki driver doesn't use any dynamic allocation.
How big is your array? It needs to be around 300kB since the wiki driver doesn't use any dynamic allocation.
Re: AHCI can't read and write blocks
The problem has been solved. I carelessly forgot to delete AHCI_BASE macro. Thanks for your help these days.Octocontrabass wrote:Since you don't have an allocator yet, I picked an unused address in my VM's memory map.
How big is your array? It needs to be around 300kB since the wiki driver doesn't use any dynamic allocation.