Changeset 3de8b81b in mainline for boot/arch/ppc64/loader/main.c


Ignore:
Timestamp:
2006-07-17T00:22:27Z (18 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
41c4444
Parents:
fcf907e
Message:

sync ppc64 with ppc32

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/ppc64/loader/main.c

    rfcf907e r3de8b81b  
    3232#include "_components.h"
    3333#include <ofw.h>
     34#include <align.h>
    3435
    3536#define HEAP_GAP 1024000
     
    102103        }
    103104       
     105        if (!ofw_keyboard(&bootinfo.keyboard)) {
     106                printf("Error: unable to get keyboard properties, halting.\n");
     107                halt();
     108        }
     109       
    104110        printf("\nDevice statistics\n");
    105111        printf(" screen at %L, resolution %dx%d, %d bpp (scanline %d bytes)\n", bootinfo.screen.addr, bootinfo.screen.width, bootinfo.screen.height, bootinfo.screen.bpp, bootinfo.screen.scanline);
     112        printf(" keyboard at %L (size %d bytes)\n", bootinfo.keyboard.addr, bootinfo.keyboard.size);
    106113       
    107114        void *real_mode_pa = ofw_translate(&real_mode);
     
    152159       
    153160        printf("\nBooting the kernel...\n");
    154         jump_to_kernel(bootinfo_pa, sizeof(bootinfo), trans_pa, pages << PAGE_WIDTH, real_mode_pa);
     161        jump_to_kernel(bootinfo_pa, sizeof(bootinfo), trans_pa, pages << PAGE_WIDTH, real_mode_pa, (void *) bootinfo.screen.addr, bootinfo.screen.scanline);
    155162}
Note: See TracChangeset for help on using the changeset viewer.