Revert r42068 and r42069, since they didnt' make sense (but something's
obviously fishy) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42078 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
813147df83
commit
ad12a198d7
@ -83,10 +83,9 @@ acpi_find_table(const char* signature)
|
|||||||
+ sizeof(acpi_descriptor_header));
|
+ sizeof(acpi_descriptor_header));
|
||||||
|
|
||||||
for (int32 j = 0; j < sNumEntries; j++, pointer++) {
|
for (int32 j = 0; j < sNumEntries; j++, pointer++) {
|
||||||
// Map B_PAGE_SIZE, since the table is bigger than the acpi_descriptor_header
|
|
||||||
acpi_descriptor_header* header = (acpi_descriptor_header*)
|
acpi_descriptor_header* header = (acpi_descriptor_header*)
|
||||||
mmu_map_physical_memory(*pointer,
|
mmu_map_physical_memory(*pointer,
|
||||||
B_PAGE_SIZE, kDefaultPageFlags);
|
sizeof(acpi_descriptor_header), kDefaultPageFlags);
|
||||||
if (header == NULL
|
if (header == NULL
|
||||||
|| strncmp(header->signature, signature, 4) != 0) {
|
|| strncmp(header->signature, signature, 4) != 0) {
|
||||||
// not interesting for us
|
// not interesting for us
|
||||||
@ -94,7 +93,7 @@ acpi_find_table(const char* signature)
|
|||||||
signature, header != NULL ? header->signature : "null"));
|
signature, header != NULL ? header->signature : "null"));
|
||||||
|
|
||||||
if (header != NULL)
|
if (header != NULL)
|
||||||
mmu_free(header, B_PAGE_SIZE);
|
mmu_free(header, sizeof(acpi_descriptor_header));
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user