[systemd-devel] [gummiboot][PATCH 2/5] util: use x86 ASM only on x86(-64) platforms.
David Herrmann
dh.herrmann at gmail.com
Sat Apr 11 02:46:10 PDT 2015
Hi
On Sat, Apr 11, 2015 at 10:23 AM, Koen Kooi <koen.kooi at linaro.org> wrote:
> Signed-off-by: Koen Kooi <koen.kooi at linaro.org>
> ---
> src/efi/util.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/src/efi/util.c b/src/efi/util.c
> index ba5ed7d..689bc7c 100644
> --- a/src/efi/util.c
> +++ b/src/efi/util.c
> @@ -33,7 +33,9 @@ UINT64 ticks_read(VOID) {
> __asm__ volatile ("rdtsc" : "=a" (a), "=d" (d));
> return (d << 32) | a;
> }
> -#else
> +#endif
> +
> +#ifdef __i386__
I changed this to:
#elif defined(__i386__)
Applied to systemd-git!
Thanks
David
> UINT64 ticks_read(VOID) {
> UINT64 val;
> __asm__ volatile ("rdtsc" : "=A" (val));
> --
> 2.0.1
>
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
More information about the systemd-devel
mailing list