acpi: Fix wrongly calculated RSDP checksum

This commit is contained in:
mintsuki 2021-06-01 21:59:05 +02:00
parent cebb45bad3
commit c31073ce63

View File

@ -25,7 +25,7 @@ void *acpi_get_rsdp(void) {
i = 0xe0000;
}
if (!memcmp((char *)i, "RSD PTR ", 8)
&& !acpi_checksum((void *)i, sizeof(struct rsdp))) {
&& !acpi_checksum((void *)i, 20)) {
printv("acpi: Found RSDP at %x\n", i);
return (void *)i;
}