From 50028fc7aade9afdd9f2cf8430af9a77cc9d9e85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sat, 2 Jan 2010 10:04:37 +0000 Subject: [PATCH] Patch by Andreas Faerber: * Choosing Reboot from the menu will now reboot the system instead of returning to the OpenFirmware prompt. Places, where returning to the prompt was desirable have been adapted to maintain their current behavior. Thanks! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34852 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/boot/platform/openfirmware/start.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/system/boot/platform/openfirmware/start.c b/src/system/boot/platform/openfirmware/start.c index a885f8d578..7a8dc2e46b 100644 --- a/src/system/boot/platform/openfirmware/start.c +++ b/src/system/boot/platform/openfirmware/start.c @@ -103,7 +103,7 @@ platform_start_kernel(void) void platform_exit(void) { - of_exit(); + of_interpret("reset-all", 0, 0); } @@ -157,10 +157,10 @@ start(void *openFirmwareEntry) arch_mmu_init(); if (boot_arch_cpu_init() != B_OK) - platform_exit(); + of_exit(); if (init_real_time_clock() != B_OK) - platform_exit(); + of_exit(); gKernelArgs.platform_args.openfirmware_entry = openFirmwareEntry;