diff options
author | Koen Kooi <koen.kooi@linaro.org> | 2015-04-11 10:23:25 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2015-04-11 11:54:45 +0200 |
commit | 0d8d3689071188d39c629c3d9d9bed52f9eecfc7 (patch) | |
tree | 30afea337bb10e2aa9b91f53478b0106da9286fd /src/boot/efi | |
parent | 4c6abc93c708762ae3f377eab8dbd357262cc432 (diff) |
boot/util: add ticks_read() stub
Diffstat (limited to 'src/boot/efi')
-rw-r--r-- | src/boot/efi/util.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/boot/efi/util.c b/src/boot/efi/util.c index 4dd7c1efde..5e374edacf 100644 --- a/src/boot/efi/util.c +++ b/src/boot/efi/util.c @@ -39,6 +39,11 @@ UINT64 ticks_read(VOID) { __asm__ volatile ("rdtsc" : "=A" (val)); return val; } +#else +UINT64 ticks_read(VOID) { + UINT64 val = 1; + return val; +} #endif /* count TSC ticks during a millisecond delay */ |