AHCI

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
grenders22
Posts: 16
Joined: Thu Mar 01, 2018 10:09 am

AHCI

Post by grenders22 »

Hello,

I do not have any problems. And without paging read perfectly. And with virtual addressing, the disk is read without ceasing, you can understand it by a light bulb and sounds. Writing the AHCi driver according to the instructions from osdev. https://wiki.osdev.org/AHCI. The reading code is taken from there. In the final stage.

Thanks in advance for your help!
Korona
Member
Member
Posts: 1000
Joined: Thu May 17, 2007 1:27 pm
Contact:

Re: AHCI

Post by Korona »

This seems to be the wrong forum; OSdev would be more appropriate.

Anyway: do you realize that the AHCI (and in general all devices) expect physical addresses? If need to probably allocate buffers and DMA structures in physical memory and pass their physical addresses to the device. Specifically, the device cannot "see" the page translation; it just sees plain physical RAM.
managarm: Microkernel-based OS capable of running a Wayland desktop (Discord: https://discord.gg/7WB6Ur3). My OS-dev projects: [mlibc: Portable C library for managarm, qword, Linux, Sigma, ...] [LAI: AML interpreter] [xbstrap: Build system for OS distributions].
Post Reply