On Mon, Jul 13, 2015 at 01:55:49PM +0200, Ard Biesheuvel wrote:
So is CNTFRQ set correctly? And does GRUB for AArch64 make use of the generic timer at all? Or does it only use the delay/timer services of UEFI in this case?
GRUB sets up a callback timer handler to be invoked every ms: --- efi_call_5 (b->create_event, GRUB_EFI_EVT_TIMER | GRUB_EFI_EVT_NOTIFY_SIGNAL, GRUB_EFI_TPL_CALLBACK, increment_timer, NULL, &tmr_evt); efi_call_3 (b->set_timer, tmr_evt, GRUB_EFI_TIMER_PERIODIC, 10000); ---
From the UEFI spec, the TriggerTime (10000) is "The number of 100ns
units until the timer expires.".
/ Leif