Changeset 7f043c0 in mainline for kernel/genarch/src/acpi/acpi.c
- Timestamp:
- 2007-05-31T21:39:13Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7bb0c32
- Parents:
- d8431986
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/acpi/acpi.c
rd8431986 r7f043c0 60 60 61 61 for (i = 0; i < 20; i++) 62 sum += rsdp[i];62 sum = (uint8_t) (sum + rsdp[i]); 63 63 64 64 if (sum) … … 69 69 70 70 for (; i < r->length; i++) 71 sum += rsdp[i];71 sum = (uint8_t) (sum + rsdp[i]); 72 72 73 73 return !sum; … … 82 82 83 83 for (i = 0; i < h->length; i++) 84 sum += sdt[i];84 sum = (uint8_t) (sum + sdt[i]); 85 85 86 86 return !sum; … … 106 106 goto next; 107 107 *signature_map[j].sdt_ptr = h; 108 printf("%#z x: ACPI %s\n", *signature_map[j].sdt_ptr, signature_map[j].description);108 printf("%#zp: ACPI %s\n", *signature_map[j].sdt_ptr, signature_map[j].description); 109 109 } 110 110 } … … 127 127 goto next; 128 128 *signature_map[j].sdt_ptr = h; 129 printf("%#z x: ACPI %s\n", *signature_map[j].sdt_ptr, signature_map[j].description);129 printf("%#zp: ACPI %s\n", *signature_map[j].sdt_ptr, signature_map[j].description); 130 130 } 131 131 } … … 161 161 162 162 rsdp_found: 163 printf("%#z x: ACPI Root System Description Pointer\n", acpi_rsdp);163 printf("%#zp: ACPI Root System Description Pointer\n", acpi_rsdp); 164 164 165 165 acpi_rsdt = (struct acpi_rsdt *) (unative_t) acpi_rsdp->rsdt_address;
Note:
See TracChangeset
for help on using the changeset viewer.