uint64_t tsc_rebase_abs_time = 0;
+volatile uint64_t gAcpiLastSleepTscBase = 0;
+volatile uint64_t gAcpiLastSleepNanoBase = 0;
+volatile uint64_t gAcpiLastWakeTscBase = 0;
+volatile uint64_t gAcpiLastWakeNanoBase = 0;
+
static void rtc_set_timescale(uint64_t cycles);
static uint64_t rtc_export_speed(uint64_t cycles);
void
rtc_nanotime_init(uint64_t base)
{
+ gAcpiLastSleepTscBase = pal_rtc_nanotime_info.tsc_base;
+ gAcpiLastSleepNanoBase = pal_rtc_nanotime_info.ns_base;
+
_rtc_nanotime_init(&pal_rtc_nanotime_info, base);
+
+ gAcpiLastWakeTscBase = pal_rtc_nanotime_info.tsc_base;
+ gAcpiLastWakeNanoBase = pal_rtc_nanotime_info.ns_base;
+
rtc_nanotime_set_commpage(&pal_rtc_nanotime_info);
}