* Added missing call to __ppc_setup_system_time(). system_time()
and real_time_clock[_usecs]() finally seem to work (at least in the kernel). * Removed accidentially committed debug output. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15861 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
67ea83c566
commit
85af525e59
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user