Ticket #5181: of_reboot.diff

File of_reboot.diff, 664 bytes (added by andreasf, 15 years ago)

patch

  • src/system/boot/platform/openfirmware/start.c

    diff --git a/src/system/boot/platform/openfirmware/start.c b/src/system/boot/platform/openfirmware/start.c
    index a885f8d..7a8dc2e 100644
    a b platform_start_kernel(void)  
    103103void
    104104platform_exit(void)
    105105{
    106     of_exit();
     106    of_interpret("reset-all", 0, 0);
    107107}
    108108
    109109
    start(void *openFirmwareEntry)  
    157157    arch_mmu_init();
    158158
    159159    if (boot_arch_cpu_init() != B_OK)
    160         platform_exit();
     160        of_exit();
    161161
    162162    if (init_real_time_clock() != B_OK)
    163         platform_exit();
     163        of_exit();
    164164
    165165    gKernelArgs.platform_args.openfirmware_entry = openFirmwareEntry;
    166166