Changeset 159c1525 in mainline
- Timestamp:
- 2018-11-13T16:08:22Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 780edc7, b60615b
- Parents:
- cbf528f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/acpi/acpi.c
rcbf528f r159c1525 171 171 } 172 172 173 typedef uint64_t _a64_t __attribute__((may_alias));174 175 173 static uint8_t *search_rsdp(uint8_t *base, size_t len) 176 174 { 177 uint64_t signature = *(_a64_t *) RSDP_SIGNATURE;178 179 175 for (size_t i = 0; i < len; i += 16) { 180 if (*((_a64_t *) &base[i]) == signature && rsdp_check(&base[i])) 176 if (__builtin_memcmp(&base[i], RSDP_SIGNATURE, 8) && 177 rsdp_check(&base[i])) 181 178 return &base[i]; 182 179 }
Note:
See TracChangeset
for help on using the changeset viewer.