Ticket #4965: ppc-extern-fix.patch

File ppc-extern-fix.patch, 2.9 KB (added by kallisti5, 14 years ago)

Patch on hrev34040, please comment kallisti5 or Alexander von Gluck on the checkin so I can track PPC fixes!

  • src/tools/makebootable/platform/openfirmware/Jamfile

     
    88# write the stage 1 boot loader into the makebootable resources
    99#AddFileDataResource <build>makebootable : RAWT:666:BootCode : stage1.bin ;
    1010
    11 #BuildPlatformMain <build>makebootable : makebootable.cpp : $(HOST_LIBBE) ;
    12 BuildPlatformMain <build>makebootable : makebootable.cpp ;
     11BuildPlatformMain <build>makebootable : makebootable.cpp : $(HOST_LIBBE) ;
     12#BuildPlatformMain <build>makebootable : makebootable.cpp ;
  • src/system/kernel/arch/ppc/arch_thread.cpp

     
    2727static struct arch_thread sInitialState;
    2828
    2929// Helper function for thread creation, defined in arch_asm.S.
    30 extern void ppc_kernel_thread_root();
     30extern "C" void ppc_kernel_thread_root();
    3131
    32 extern void ppc_switch_stack_and_call(addr_t newKstack, void (*func)(void *),
     32extern "C" void ppc_switch_stack_and_call(addr_t newKstack, void (*func)(void *),
    3333    void *arg);
    3434
    3535
  • src/system/boot/platform/openfirmware/console.cpp

     
    231231{
    232232    // Note: We toggle the cursor temporarily to prevent a cursor artifact at
    233233    // at the old location.
     234
     235    // Note: toggle-cursor is not implimented in qemu openbios-ppc
     236
    234237    of_interpret("toggle-cursor"
    235238        " to line#"
    236239        " to column#"
     
    273276{
    274277    // Note: Toggling the cursor doesn't seem to help. We still get cursor
    275278    // artifacts.
     279
     280    // Note: toggle-cursor is not implimented in qemu openbios-ppc
     281
    276282    of_interpret("toggle-cursor"
    277283        " to foreground-color"
    278284        " to background-color"
  • src/system/boot/platform/openfirmware/arch/ppc/cpu.cpp

     
    4545        if (cpuCount == 0) {
    4646            int cpu = of_finddevice(cpuPath);
    4747            if (cpu == OF_FAILED) {
     48                // NOTE: This will always fail on the openbios-ppc prom in qemu.
     49                //       For some reason the /cpus/PowerPC,750@0 node cannot be entered to
     50                //       grab its properties and we get a "no such device". Commenting out
     51                //       all the B_ERROR's below will get you to the point where we try to
     52                //       draw the boot menu.
    4853                printf("boot_arch_cpu_init: Failed get CPU device node!\n");
    4954                return B_ERROR;
    5055            }