[SOLVED]trouble locating RSDP
Posted: Sat Jul 13, 2013 8:27 pm
I am searching the entire adress space below 1mb and I can't find the RSDP signature "RSD PTR ".
The code for the search is
And the function rstrncmp is as follows
I am using QEMU, and have not tested, not have the ability to test on real hardware.
Any help would be greatly Appreciated.
The code for the search is
Code: Select all
char *mem;
for(int i=0;i<0x100000;i+=16) {
if(!rstrncmp(mem,"RSD PTR "))return (uint32_t)mem;
}
Code: Select all
int rstrncmp(char *str1, char *str2) {
for(int i=0;i<8 ;i++) {
if(*str1++!=*str2)return 1;
}
return 0;
}
Any help would be greatly Appreciated.