Changeset 1787e527 in mainline for kernel/genarch/src/acpi/acpi.c


Ignore:
Timestamp:
2009-11-16T21:22:54Z (15 years ago)
Author:
Lenka Trochtova <trochtova.lenka@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5ebdf94
Parents:
fcbd1be (diff), 9c70ed6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merged with head (unstable)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/src/acpi/acpi.c

    rfcbd1be r1787e527  
    4646#define RSDP_REVISION_OFFS      15
    4747
     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
    4854struct acpi_rsdp *acpi_rsdp = NULL;
    4955struct acpi_rsdt *acpi_rsdt = NULL;
     
    105111                        struct acpi_sdt_header *h = (struct acpi_sdt_header *) (unative_t) acpi_rsdt->entry[i];
    106112               
    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)) {
    109115                                if (!acpi_sdt_check((uint8_t *) h))
    110116                                        goto next;
     
    127133
    128134                        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)) {
    130136                                if (!acpi_sdt_check((uint8_t *) h))
    131137                                        goto next;
Note: See TracChangeset for help on using the changeset viewer.