diff --git a/src/system/kernel/arch/ppc/arch_platform.cpp b/src/system/kernel/arch/ppc/arch_platform.cpp index b4e7f09eb6..1defa41a7a 100644 --- a/src/system/kernel/arch/ppc/arch_platform.cpp +++ b/src/system/kernel/arch/ppc/arch_platform.cpp @@ -140,10 +140,8 @@ status_t PPCOpenFirmware::InitRTC(struct kernel_args *kernelArgs, struct real_time_data *data) { -kprintf("PPCOpenFirmware::InitRTC(): opening \"%s\"...\n", kernelArgs->platform_args.rtc_path); // open RTC fRTC = of_open(kernelArgs->platform_args.rtc_path); -kprintf(" of_open() returned: %d\n", fRTC); if (fRTC == OF_FAILED) { dprintf("PPCOpenFirmware::InitRTC(): Failed open RTC device!\n"); return B_ERROR; diff --git a/src/system/kernel/arch/ppc/arch_real_time_clock.cpp b/src/system/kernel/arch/ppc/arch_real_time_clock.cpp index f074536487..463ed511c7 100644 --- a/src/system/kernel/arch/ppc/arch_real_time_clock.cpp +++ b/src/system/kernel/arch/ppc/arch_real_time_clock.cpp @@ -29,6 +29,9 @@ arch_rtc_init(kernel_args *args, struct real_time_data *data) // init spinlock sSetArchDataLock = 0; + // init system_time() conversion factor + __ppc_setup_system_time(&data->arch_data.system_time_conversion_factor); + return B_OK; }