pci_acpi.cpp: space cleanup
This commit is contained in:
parent
004a268e04
commit
30794c2d79
@ -99,7 +99,7 @@ acpi_check_rsdt(acpi_rsdp* rsdp)
|
||||
if (rsdp->revision > 0) {
|
||||
length = rsdp->xsdt_length;
|
||||
rsdtArea = map_physical_memory("rsdt acpi",
|
||||
(uint32)rsdp->xsdt_address, rsdp->xsdt_length, B_ANY_KERNEL_ADDRESS,
|
||||
(uint32)rsdp->xsdt_address, rsdp->xsdt_length, B_ANY_KERNEL_ADDRESS,
|
||||
B_KERNEL_READ_AREA, (void **)&rsdt);
|
||||
if (rsdt != NULL
|
||||
&& strncmp(rsdt->signature, ACPI_XSDT_SIGNATURE, 4) != 0) {
|
||||
@ -133,7 +133,7 @@ acpi_check_rsdt(acpi_rsdp* rsdp)
|
||||
TRACE(("acpi: rsdt length: %lu\n", length));
|
||||
delete_area(rsdtArea);
|
||||
rsdtArea = map_physical_memory("rsdt acpi",
|
||||
rsdp->rsdt_address, length, B_ANY_KERNEL_ADDRESS,
|
||||
rsdp->rsdt_address, length, B_ANY_KERNEL_ADDRESS,
|
||||
B_KERNEL_READ_AREA, (void **)&rsdt);
|
||||
}
|
||||
|
||||
@ -187,7 +187,7 @@ acpi_find_table_generic(const char* signature, acpi_descriptor_header* acpiSdt)
|
||||
area_id headerArea = -1;
|
||||
for (int32 j = 0; j < sNumEntries; j++, pointer++) {
|
||||
headerArea = map_physical_memory("acpi header", (uint32)*pointer,
|
||||
sizeof(acpi_descriptor_header), B_ANY_KERNEL_ADDRESS,
|
||||
sizeof(acpi_descriptor_header), B_ANY_KERNEL_ADDRESS,
|
||||
B_KERNEL_READ_AREA, (void **)&header);
|
||||
|
||||
if (header == NULL
|
||||
@ -217,7 +217,7 @@ acpi_find_table_generic(const char* signature, acpi_descriptor_header* acpiSdt)
|
||||
delete_area(headerArea);
|
||||
|
||||
headerArea = map_physical_memory("acpi table",
|
||||
(uint32)*pointer, length, B_ANY_KERNEL_ADDRESS,
|
||||
(uint32)*pointer, length, B_ANY_KERNEL_ADDRESS,
|
||||
B_KERNEL_READ_AREA, (void **)&header);
|
||||
return header;
|
||||
}
|
||||
@ -262,7 +262,7 @@ acpi_init()
|
||||
rsdp = (acpi_rsdp*)pointer;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (rsdp != NULL && acpi_check_rsdt(rsdp) == B_OK) {
|
||||
delete_area(rsdpArea);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user