Changeset 517 for Whitix/branches/hybrid
- Timestamp:
- 05/24/08 09:45:28 (3 months ago)
- Files:
-
- 1 modified
-
Whitix/branches/hybrid/arch/i386/mm/init.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Whitix/branches/hybrid/arch/i386/mm/init.c
r399 r517 195 195 if (memEntries[i].base + memEntries[i].length < memEntries[i].base) 196 196 { 197 printf("Weird E820 entry. Index is %d\n",i);197 KePrint("Weird E820 entry. Index is %d\n",i); 198 198 return 1; 199 199 } … … 220 220 int i; 221 221 222 printf("PHYS: Number of E820 entries = %u\n",entryCount);222 KePrint("PHYS: Number of E820 entries = %u\n",entryCount); 223 223 224 224 for (i=0; i<entryCount; i++) 225 225 { 226 226 currEntry=&entries[i]; 227 printf("Start: %#016X End: %#016X Type: ",(DWORD)currEntry->base,(DWORD)(currEntry->base+currEntry->length));227 KePrint("Start: %#016X End: %#016X Type: ",(DWORD)currEntry->base,(DWORD)(currEntry->base+currEntry->length)); 228 228 229 229 switch (currEntry->rangeType) 230 230 { 231 231 case 1: 232 printf("free memory\n");232 KePrint("free memory\n"); 233 233 break; 234 234 case 2: 235 printf("reserved\n");235 KePrint("reserved\n"); 236 236 break; 237 237 case 3: 238 printf("ACPI Reclaim\n");238 KePrint("ACPI Reclaim\n"); 239 239 break; 240 240 case 4: 241 printf("ACPI NVS\n");241 KePrint("ACPI NVS\n"); 242 242 break; 243 243 default: 244 printf("Type = %u\n",currEntry->rangeType);244 KePrint("Type = %u\n",currEntry->rangeType); 245 245 } 246 246 } … … 449 449 /* Print memory size for information purposes */ 450 450 DWORD memSize=(maxPfn >> 8); 451 printf("%umb physical memory available\n",memSize);451 KePrint("%umb physical memory available\n",memSize); 452 452 453 453 if (memSize < 2) 454 454 { 455 printf("Less than 2mb memory available. Whitix requires more than this\n");455 KePrint("Less than 2mb memory available. Whitix requires more than this\n"); 456 456 cli(); hlt(); 457 457 }
