Change-Id: Idc64a00e4dcc787e35afc560acd06a606a6a6964 Reviewed-on: https://review.haiku-os.org/c/haiku/+/10606 Reviewed-by: waddlesplash <[email protected]>
44 lines
694 B
C++
44 lines
694 B
C++
/*
|
|
* Copyright 2019 Haiku, Inc. All Rights Reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#include <arch/real_time_clock.h>
|
|
|
|
#include <real_time_clock.h>
|
|
#include <real_time_data.h>
|
|
#include <smp.h>
|
|
|
|
|
|
status_t
|
|
arch_rtc_init(kernel_args *args, struct real_time_data *data)
|
|
{
|
|
return B_OK;
|
|
}
|
|
|
|
|
|
uint64
|
|
arch_rtc_get_hw_time(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
|
|
void
|
|
arch_rtc_set_hw_time(uint64 seconds)
|
|
{
|
|
}
|
|
|
|
|
|
void
|
|
arch_rtc_set_system_time_offset(struct real_time_data *data, bigtime_t offset)
|
|
{
|
|
atomic_set64(&data->arch_data.system_time_offset, offset);
|
|
}
|
|
|
|
|
|
bigtime_t
|
|
arch_rtc_get_system_time_offset(struct real_time_data *data)
|
|
{
|
|
return atomic_get64(&data->arch_data.system_time_offset);
|
|
}
|