Changeset 5d684e4 in mainline for boot/arch/sparc64/loader/main.c
- Timestamp:
- 2006-09-23T13:12:10Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6ff1f1e
- Parents:
- 28ecadb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/sparc64/loader/main.c
r28ecadb r5d684e4 58 58 } 59 59 60 if (!ofw_screen(&bootinfo.screen)) {61 printf("Error: unable to get screen properties, halting.\n");62 halt();63 }64 bootinfo.screen.addr = ofw_translate(bootinfo.screen.addr);65 /* transform scanline to bytes with respect to potential alignment */66 bootinfo.screen.scanline = bootinfo.screen.scanline*bpp2align[bootinfo.screen.bpp >> 3];67 68 60 if (!ofw_cpu(&bootinfo.cpu)) 69 61 printf("Error: unable to get cpu properties\n"); 70 62 71 printf("\nDevice statistics\n");63 printf("\nDevice info\n"); 72 64 printf(" cpu: %dMHz\n", bootinfo.cpu.clock_frequency/1000000); 73 65 printf(" memory: %dM\n", bootinfo.memmap.total>>20); 74 printf(" screen at %P, resolution %dx%d, %d bpp (scanline %d bytes)\n", (uintptr_t) bootinfo.screen.addr, bootinfo.screen.width, bootinfo.screen.height, bootinfo.screen.bpp, bootinfo.screen.scanline);75 66 76 67 printf("\nMemory statistics\n");
Note:
See TracChangeset
for help on using the changeset viewer.