Electrical – Hard drive place in Processor Memory map

microcontrollermicroprocessor

As we know that every Processor/Microcontroller has a memory map which is divided into different regions. on each region a peripheral is mapped like RAM etc. following is the memory map of general x86 processor.

enter image description here

As one can see there is memory range for RAM, DMA, PCI etc. My question is Where is Hard drive mounted in this memory map??? and how is it accessed?

Best Answer

HDDs are not directly mapped to CPU memory space. Instead they are attached to an intermediate interface of some sort (PATA, SATA, SCSI, USB etc.), and are accessed via the corresponding interface controller. Those controllers have memory-mapped space for data transfer, and/or are capable of acting as masters, reading and writing data from arbitrary RAM locations. Example from my laptop:

enter image description here