Changeset 7d07bf3 in mainline
- Timestamp:
- 2007-01-29T18:39:27Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 623b49f1
- Parents:
- b1349e0
- Location:
- kernel
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/debugger.c
rb1349e0 r7d07bf3 249 249 printf("***Type 'exit' to exit kconsole.\n"); 250 250 atomic_set(&haltstate,1); 251 kconsole( "debug");251 kconsole((void *) "debug"); 252 252 atomic_set(&haltstate,0); 253 253 } -
kernel/arch/ia32/src/mm/tlb.c
rb1349e0 r7d07bf3 62 62 void tlb_invalidate_pages(asid_t asid, uintptr_t page, count_t cnt) 63 63 { 64 int i;64 unsigned int i; 65 65 66 66 for (i = 0; i < cnt; i++) -
kernel/genarch/src/acpi/acpi.c
rb1349e0 r7d07bf3 57 57 struct acpi_rsdp *r = (struct acpi_rsdp *) rsdp; 58 58 uint8_t sum = 0; 59 int i;59 unsigned int i; 60 60 61 for (i =0; i<20; i++)61 for (i = 0; i < 20; i++) 62 62 sum += rsdp[i]; 63 63 … … 68 68 return 1; /* ACPI 1.0 */ 69 69 70 for (; i <r->length; i++)70 for (; i < r->length; i++) 71 71 sum += rsdp[i]; 72 72 … … 79 79 struct acpi_sdt_header *h = (struct acpi_sdt_header *) sdt; 80 80 uint8_t sum = 0; 81 int i;81 unsigned int i; 82 82 83 for (i =0; i<h->length; i++)83 for (i = 0; i < h->length; i++) 84 84 sum += sdt[i]; 85 85 … … 95 95 static void configure_via_rsdt(void) 96 96 { 97 int i, j, cnt = (acpi_rsdt->header.length - sizeof(struct acpi_sdt_header))/sizeof(uint32_t);97 unsigned int i, j, cnt = (acpi_rsdt->header.length - sizeof(struct acpi_sdt_header)) / sizeof(uint32_t); 98 98 99 for (i =0; i<cnt; i++) {100 for (j =0; j<sizeof(signature_map)/sizeof(struct acpi_signature_map); j++) {99 for (i = 0; i < cnt; i++) { 100 for (j = 0; j < sizeof(signature_map) / sizeof(struct acpi_signature_map); j++) { 101 101 struct acpi_sdt_header *h = (struct acpi_sdt_header *) (unative_t) acpi_rsdt->entry[i]; 102 102 103 103 map_sdt(h); 104 if (*((uint32_t *) &h->signature[0]) ==*((uint32_t *) &signature_map[j].signature[0])) {104 if (*((uint32_t *) &h->signature[0]) == *((uint32_t *) &signature_map[j].signature[0])) { 105 105 if (!acpi_sdt_check((uint8_t *) h)) 106 106 goto next; … … 116 116 static void configure_via_xsdt(void) 117 117 { 118 int i, j, cnt = (acpi_xsdt->header.length - sizeof(struct acpi_sdt_header))/sizeof(uint64_t);118 unsigned int i, j, cnt = (acpi_xsdt->header.length - sizeof(struct acpi_sdt_header)) / sizeof(uint64_t); 119 119 120 for (i =0; i<cnt; i++) {121 for (j =0; j<sizeof(signature_map)/sizeof(struct acpi_signature_map); j++) {120 for (i = 0; i < cnt; i++) { 121 for (j = 0; j < sizeof(signature_map) / sizeof(struct acpi_signature_map); j++) { 122 122 struct acpi_sdt_header *h = (struct acpi_sdt_header *) ((uintptr_t) acpi_rsdt->entry[i]); 123 123 124 124 map_sdt(h); 125 if (*((uint32_t *) &h->signature[0]) ==*((uint32_t *) &signature_map[j].signature[0])) {125 if (*((uint32_t *) &h->signature[0]) == *((uint32_t *) &signature_map[j].signature[0])) { 126 126 if (!acpi_sdt_check((uint8_t *) h)) 127 127 goto next;
Note:
See TracChangeset
for help on using the changeset viewer.