2 ACPI RSDP tables in bochs
Posted: Sun Dec 21, 2008 4:59 pm
Hi. I'm trying to write ACPI code for my OS.
I wrote a simple function to find the RSDP table using the Anchor string "RDS PTR ". My function is (i'm in higher half)
My code returns two tables at 0xC00E1ECF and at 0xC00FB970.
Which one should I use. Is this a bochs bug or a my code bug?
Thanks
I wrote a simple function to find the RSDP table using the Anchor string "RDS PTR ". My function is (i'm in higher half)
Code: Select all
void acpi_init() {
char *sign;
for (sign = 0xC00E0000; sign <= 0xC00FFFFF; sign++) {
if (!strncmp(sign, "RSD PTR ", 8)) {
kprintf("Found at %x\n", (dword) sign);
}
}
}
Which one should I use. Is this a bochs bug or a my code bug?
Thanks