diff options
author | Michael Brown <mcb30@ipxe.org> | 2016-05-04 13:04:33 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2016-05-04 13:38:33 +0100 |
commit | 757ab983811ac8d3f65efb65b8309738bd33bea3 (patch) | |
tree | 68e07447d247633a7f25cd85f3df1c59f3b8dada /src/interface/efi/efi_entropy.c | |
parent | 1e066431a45a67321abcd134e888205fc633bd41 (diff) | |
download | ipxe-757ab983811ac8d3f65efb65b8309738bd33bea3.tar.gz |
[efi] Use a timer event to generate the currticks() timer
We currently use the EFI_CPU_ARCH_PROTOCOL's GetTimerValue() method to
generate the currticks() timer, calibrated against a 1ms delay from
the boot services Stall() method.
This does not work on ARM platforms, where GetTimerValue() is an empty
stub which just returns EFI_UNSUPPORTED.
Fix by instead creating a periodic timer event, and using this event
to increment a current tick counter.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/interface/efi/efi_entropy.c')
0 files changed, 0 insertions, 0 deletions