Skip to contentSkip to conversation

x86/vendor: Renumber the X86_VENDOR_ constants

PATCH In review Andrew Cooper 2 participants 2 messages Nov 20, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/vendor: Renumber the X86_VENDOR_ constants

Make X86_VENDOR_UNKNOWN have the value 0 so a piece of zeroed memory can't get confused with X86_VENDOR_INTEL.

No functional change.

---
CC: Jan Beulich <[email protected]>
CC: Wei Liu <[email protected]>
CC: Roger Pau Monné <[email protected]>

---
 xen/include/asm-x86/x86-vendors.h | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
xen/include/asm-x86/x86-vendors.h +6 -6
index c53d0b9..38a81c3 100644
@@ -4,11 +4,11 @@
 /*
  * CPU vendor IDs
  */
-#define X86_VENDOR_INTEL 0
-#define X86_VENDOR_AMD 1
-#define X86_VENDOR_CENTAUR 2
-#define X86_VENDOR_SHANGHAI 3
-#define X86_VENDOR_NUM 4
-#define X86_VENDOR_UNKNOWN 0xff
+#define X86_VENDOR_UNKNOWN 0
+#define X86_VENDOR_INTEL 1
+#define X86_VENDOR_AMD 2
+#define X86_VENDOR_CENTAUR 3
+#define X86_VENDOR_SHANGHAI 4
+#define X86_VENDOR_NUM 5
 
 #endif	/* __XEN_X86_VENDORS_H__ */
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines
Quoted 1 line
Quoted 1 line · On 20.11.18 at 16:30, <[email protected]> wrote:

Make X86_VENDOR_UNKNOWN have the value 0 so a piece of zeroed memory can't get confused with X86_VENDOR_INTEL.

No functional change.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel