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:
Wei Liu committed 2017-02-06 10:15:49 +00:00
1 parent 451689c35a
commit f3358a8cd7
2 files changed
+14 -10

No files matched your search

+1 -10
View File
@@ -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.
+13
View File
@@ -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__ */
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.