1 From a21e75da32c0016f1575ea29775565934a67660d Mon Sep 17 00:00:00 2001
2 From: "Sergey V. Lobanov" <sergey@lobanov.in>
3 Date: Sat, 5 Feb 2022 13:10:23 +0300
4 Subject: [PATCH] Add cpuid compatibility header to build on non-x86 hosts
6 Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
8 cpuid-compat/cpuid.h | 17 +++++++++++++++++
9 1 file changed, 17 insertions(+)
10 create mode 100644 cpuid-compat/cpuid.h
13 +++ b/cpuid-compat/cpuid.h
15 +// SPDX-License-Identifier: GPL-2.0-or-later
17 + * cpuid compatibility header to build iucode-tool on non-x86 hosts
19 + * Copyright (C) 2022 Sergey V. Lobanov <sergey@lobanov.in>
26 +static __inline int __get_cpuid (unsigned int leaf,
27 + unsigned int *eax, unsigned int *ebx,
28 + unsigned int *ecx, unsigned int *edx)