[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH v4 04/12] x86: extract vendor numeric id to x86-vendors.h
They will be shared between xen and userspace programs. This is not strictly necessary, but it helps reduce overall code size. No functional change. Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx> Acked-by: Jan Beulich <jbeulich@xxxxxxxx> --- xen/include/asm-x86/processor.h | 11 +---------- xen/include/asm-x86/x86-vendors.h | 13 +++++++++++++ 2 files changed, 14 insertions(+), 10 deletions(-) create mode 100644 xen/include/asm-x86/x86-vendors.h diff --git a/xen/include/asm-x86/processor.h b/xen/include/asm-x86/processor.h index 5902c93a7c..7735bc2a49 100644 --- a/xen/include/asm-x86/processor.h +++ b/xen/include/asm-x86/processor.h @@ -17,16 +17,7 @@ #endif #include <asm/x86-defns.h> - -/* - * CPU vendor IDs - */ -#define X86_VENDOR_INTEL 0 -#define X86_VENDOR_AMD 1 -#define X86_VENDOR_CENTAUR 2 -#define X86_VENDOR_NUM 3 -#define X86_VENDOR_UNKNOWN 0xff - +#include <asm/x86-vendors.h> /* * Trap/fault mnemonics. diff --git a/xen/include/asm-x86/x86-vendors.h b/xen/include/asm-x86/x86-vendors.h new file mode 100644 index 0000000000..cae5507bd0 --- /dev/null +++ b/xen/include/asm-x86/x86-vendors.h @@ -0,0 +1,13 @@ +#ifndef __XEN_X86_VENDORS_H__ +#define __XEN_X86_VENDORS_H__ + +/* + * CPU vendor IDs + */ +#define X86_VENDOR_INTEL 0 +#define X86_VENDOR_AMD 1 +#define X86_VENDOR_CENTAUR 2 +#define X86_VENDOR_NUM 3 +#define X86_VENDOR_UNKNOWN 0xff + +#endif /* __XEN_X86_VENDORS_H__ */ -- 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |