unable to Read the ABAR(AHCI base Memory Register) content.
Posted: Mon Jun 22, 2015 10:08 am
hi,
As mentioned in http://wiki.osdev.org/AHCI that host communicate with AHCI controller through system memory and memory mapped registers.
The Last PCI base Address Register (BAR[5],header offset 0x24)points to the AHCI base memory,its called ABAR.
i have tried this, and got BAR[5] value=0xfeaf000,
while trying to read the contents of this value i have alwas got 0vffffffff.(for every offset i have tried)
i have used simple c memory read technique,
like:
unsigned int *abar = (unsigned int *) 0x0feaf000;
and then printint *abar value.
what's wrong with it?plz help me out.
As mentioned in http://wiki.osdev.org/AHCI that host communicate with AHCI controller through system memory and memory mapped registers.
The Last PCI base Address Register (BAR[5],header offset 0x24)points to the AHCI base memory,its called ABAR.
i have tried this, and got BAR[5] value=0xfeaf000,
while trying to read the contents of this value i have alwas got 0vffffffff.(for every offset i have tried)
i have used simple c memory read technique,
like:
unsigned int *abar = (unsigned int *) 0x0feaf000;
and then printint *abar value.
what's wrong with it?plz help me out.