The VM_I386 macro is described as "historical". But recent cleanups
reduced the number of usages to the point where "historical" can become
"removed".
Remove the declaration, comments describing the declaration, and
fix the last two places to use the modern macro alternatives.
#ifndef _BACKDOOR_TYPES_H_
#define _BACKDOOR_TYPES_H_
-#ifndef VM_I386
+#if !defined(__i386__) && !defined(__x86_64__) && \
+ !defined(_M_IX86) && !defined(_M_X64)
#error The backdoor protocol is only supported on x86 architectures.
#endif
*/
#ifndef PAGE_SHIFT // {
-#if defined VM_I386
+#if defined __x86_64__ || defined __i386__
#define PAGE_SHIFT 12
#elif defined __APPLE__
#define PAGE_SHIFT 12
* - VM_<arch>_32 for the 32-bit variant.
* - VM_<arch>_64 for the 64-bit variant.
* - VM_<arch>_ANY for any variant of <arch>.
- *
- * VM_X86_ANY is synonymous with the confusing and deprecated VM_I386 (which
- * should really be VM_X86_32).
*/
#ifdef __i386__
-/*
- * VM_I386 is historically synonymous with VM_X86_ANY in bora, but misleading,
- * since it is confused with the __i386__ gcc but defined for both 32- and
- * 64-bit x86. We retain it here for legacy compatibility.
- */
-#define VM_I386
#define VM_X86_32
#define VM_X86_ANY
#define VM_32BIT
#ifdef __x86_64__
#define VM_X86_64
#define vm_x86_64 1
-#define VM_I386
#define VM_X86_ANY
#define VM_64BIT
#else