Changeset 780edc7 in mainline


Ignore:
Timestamp:
2018-11-13T18:39:12Z (6 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6ae5e3f
Parents:
159c1525
Message:

Fix test for memcmp() match

File:
1 edited

Legend:

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

    r159c1525 r780edc7  
    174174{
    175175        for (size_t i = 0; i < len; i += 16) {
    176                 if (__builtin_memcmp(&base[i], RSDP_SIGNATURE, 8) &&
     176                if (!__builtin_memcmp(&base[i], RSDP_SIGNATURE, 8) &&
    177177                    rsdp_check(&base[i]))
    178178                        return &base[i];
Note: See TracChangeset for help on using the changeset viewer.