Changeset cbf528f in mainline
- Timestamp:
- 2018-11-13T15:15:05Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 159c1525
- Parents:
- 705ca2b
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-11-13 15:09:15)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-11-13 15:15:05)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/acpi/acpi.c
r705ca2b rcbf528f 171 171 } 172 172 173 typedef uint64_t _a64_t __attribute__((may_alias)); 174 173 175 static uint8_t *search_rsdp(uint8_t *base, size_t len) 174 176 { 177 uint64_t signature = *(_a64_t *) RSDP_SIGNATURE; 178 175 179 for (size_t i = 0; i < len; i += 16) { 176 if (memcmp(&base[i], RSDP_SIGNATURE, sizeof(RSDP_SIGNATURE)) == 0 && 177 rsdp_check(&base[i])) 180 if (*((_a64_t *) &base[i]) == signature && rsdp_check(&base[i])) 178 181 return &base[i]; 179 182 }
Note:
See TracChangeset
for help on using the changeset viewer.