mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
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@citrix.com> Acked-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
1 parent
451689c35a
commit
f3358a8cd7
2 files changed
+14
-10
No files matched your search
@@ -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.
|
||||
|
||||
@@ -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__ */
|
||||