Subversion Repositories HelenOS

Rev

Rev 1894 | Rev 1897 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1894 Rev 1896
Line 63... Line 63...
63
    }
63
    }
64
    bootinfo.screen.addr = ofw_translate(bootinfo.screen.addr);
64
    bootinfo.screen.addr = ofw_translate(bootinfo.screen.addr);
65
    /* transform scanline to bytes with respect to potential alignment */
65
    /* transform scanline to bytes with respect to potential alignment */
66
    bootinfo.screen.scanline = bootinfo.screen.scanline*bpp2align[bootinfo.screen.bpp >> 3];
66
    bootinfo.screen.scanline = bootinfo.screen.scanline*bpp2align[bootinfo.screen.bpp >> 3];
67
   
67
   
68
    if (!ofw_keyboard(&bootinfo.keyboard))
-
 
69
        printf("Error: unable to get keyboard properties\n");
-
 
70
 
-
 
71
    if (!ofw_cpu(&bootinfo.cpu))
68
    if (!ofw_cpu(&bootinfo.cpu))
72
        printf("Error: unable to get cpu properties\n");
69
        printf("Error: unable to get cpu properties\n");
73
 
70
 
74
    printf("\nDevice statistics\n");
71
    printf("\nDevice statistics\n");
75
    printf(" cpu: %dMHz\n", bootinfo.cpu.clock_frequency/1000000);
72
    printf(" cpu: %dMHz\n", bootinfo.cpu.clock_frequency/1000000);
76
    printf(" memory: %dM\n", bootinfo.memmap.total>>20);
73
    printf(" memory: %dM\n", bootinfo.memmap.total>>20);
77
    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);
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);
78
    printf(" keyboard at %P (size %d bytes)\n", (uintptr_t) bootinfo.keyboard.addr, bootinfo.keyboard.size);
-
 
79
 
75
 
80
    printf("\nMemory statistics\n");
76
    printf("\nMemory statistics\n");
81
    printf(" kernel entry point at %P\n", KERNEL_VIRTUAL_ADDRESS);
77
    printf(" kernel entry point at %P\n", KERNEL_VIRTUAL_ADDRESS);
82
    printf(" %P: boot info structure\n", &bootinfo);
78
    printf(" %P: boot info structure\n", &bootinfo);
83
   
79