From 89806d407594620d261e6b76483831ade5077344 Mon Sep 17 00:00:00 2001 From: PulkoMandy Date: Wed, 30 Dec 2020 19:02:51 +0100 Subject: [PATCH] openfirmware: Make realtime clock init non-fatal The realtime clock is used only to seed the random number generator for picking a random TCP port. This is not very important, so there's no reason to completely fail when it doesn't work. Change-Id: I50123433153c16595118fdf923f4b707e2c98fdd Reviewed-on: https://review.haiku-os.org/c/haiku/+/3568 Reviewed-by: waddlesplash --- src/system/boot/platform/openfirmware/start.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/system/boot/platform/openfirmware/start.cpp b/src/system/boot/platform/openfirmware/start.cpp index e49398efdd..f0f8abd7a1 100644 --- a/src/system/boot/platform/openfirmware/start.cpp +++ b/src/system/boot/platform/openfirmware/start.cpp @@ -126,8 +126,7 @@ start(void *openFirmwareEntry) if (boot_arch_cpu_init() != B_OK) of_exit(); - if (init_real_time_clock() != B_OK) - of_exit(); + init_real_time_clock(); // check for key presses once sBootOptions = 0;