diff options
author | Koen Kooi <koen.kooi@linaro.org> | 2015-04-11 10:23:23 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2015-04-11 11:48:39 +0200 |
commit | 8403daa2840cbfb06963228469922c549455aeda (patch) | |
tree | 1dbd8a4b15249f97f78d3f22ff62b82305b2de82 /src/boot/efi/util.c | |
parent | 32ef61b88864e0de2edd8dbadfc315ee4c353324 (diff) |
boot/util: use x86 ASM only on x86 platforms.
Diffstat (limited to 'src/boot/efi/util.c')
-rw-r--r-- | src/boot/efi/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/boot/efi/util.c b/src/boot/efi/util.c index ba5ed7d22f..4dd7c1efde 100644 --- a/src/boot/efi/util.c +++ b/src/boot/efi/util.c @@ -33,7 +33,7 @@ UINT64 ticks_read(VOID) { __asm__ volatile ("rdtsc" : "=a" (a), "=d" (d)); return (d << 32) | a; } -#else +#elif defined(__i386__) UINT64 ticks_read(VOID) { UINT64 val; __asm__ volatile ("rdtsc" : "=A" (val)); |