Changeset 1075ac6 in mainline
- Timestamp:
- 2009-08-27T10:56:18Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5418217
- Parents:
- 6c3d54e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/acpi/acpi.c
r6c3d54e r1075ac6 46 46 #define RSDP_REVISION_OFFS 15 47 47 48 #define CMP_SIGNATURE(left, right) \ 49 (((left)[0] == (right)[0]) && \ 50 ((left)[1] == (right)[1]) && \ 51 ((left)[2] == (right)[2]) && \ 52 ((left)[3] == (right)[3])) 53 48 54 struct acpi_rsdp *acpi_rsdp = NULL; 49 55 struct acpi_rsdt *acpi_rsdt = NULL; … … 105 111 struct acpi_sdt_header *h = (struct acpi_sdt_header *) (unative_t) acpi_rsdt->entry[i]; 106 112 107 map_sdt(h); 108 if ( *((uint32_t *) &h->signature[0]) == *((uint32_t *) &signature_map[j].signature[0])) {113 map_sdt(h); 114 if (CMP_SIGNATURE(h->signature, signature_map[j].signature)) { 109 115 if (!acpi_sdt_check((uint8_t *) h)) 110 116 goto next; … … 127 133 128 134 map_sdt(h); 129 if ( *((uint32_t *) &h->signature[0]) == *((uint32_t *) &signature_map[j].signature[0])) {135 if (CMP_SIGNATURE(h->signature, signature_map[j].signature)) { 130 136 if (!acpi_sdt_check((uint8_t *) h)) 131 137 goto next;
Note:
See TracChangeset
for help on using the changeset viewer.