CMOS access question
Posted: Sun Mar 19, 2006 11:40 pm
If I want to read from the CMOS map, I do it like this:
This works perfectly, but as I was browsing through some kernels and tutorials, I found that some of them disable interrupts (asm("cli");) before accessing the CMOS, and I don't think it is necessary (actually, I set up my floppy driver just after enabling interrupts...). Could you help me with this doubt please?
Candamir
BTW, there's a really great site out there containing the entire CMOS map and lots of useful information regarding the BIOS: http://www.addict3d.org/index.php?page=viewarticle&type=security&ID=5612&title=Bios%20Information%20Leakage
Code: Select all
outportb(0x70,0x10); // for the floppy drives, only an example
char x = inportb(0x71);
Candamir
BTW, there's a really great site out there containing the entire CMOS map and lots of useful information regarding the BIOS: http://www.addict3d.org/index.php?page=viewarticle&type=security&ID=5612&title=Bios%20Information%20Leakage