diff options
| author | Michael Brown | 2016-05-04 14:04:33 +0200 |
|---|---|---|
| committer | Michael Brown | 2016-05-04 14:38:33 +0200 |
| commit | 757ab983811ac8d3f65efb65b8309738bd33bea3 (patch) | |
| tree | 68e07447d247633a7f25cd85f3df1c59f3b8dada /src/interface/efi/efi_debug.c | |
| parent | [tcpip] Do not fall back to using unoptimised TCP/IP checksumming (diff) | |
| download | ipxe-757ab983811ac8d3f65efb65b8309738bd33bea3.tar.gz ipxe-757ab983811ac8d3f65efb65b8309738bd33bea3.tar.xz ipxe-757ab983811ac8d3f65efb65b8309738bd33bea3.zip | |
[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_debug.c')
0 files changed, 0 insertions, 0 deletions
