]>
git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/Include/IndustryStandard/InstructionParsing.h
2 Instruction parsing support definitions.
4 Copyright (C) 2020, Advanced Micro Devices, Inc. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #ifndef __INSTRUCTION_PARSING_H__
10 #define __INSTRUCTION_PARSING_H__
16 // Instruction REX prefix definition
28 } INSTRUCTION_REX_PREFIX
;
31 // Instruction ModRM definition
44 // Instruction SIB definition
57 // Legacy Instruction Prefixes
59 #define OVERRIDE_SEGMENT_CS 0x2E
60 #define OVERRIDE_SEGMENT_DS 0x3E
61 #define OVERRIDE_SEGMENT_ES 0x26
62 #define OVERRIDE_SEGMENT_SS 0x36
63 #define OVERRIDE_SEGMENT_FS 0x64
64 #define OVERRIDE_SEGMENT_GS 0x65
65 #define OVERRIDE_OPERAND_SIZE 0x66
66 #define OVERRIDE_ADDRESS_SIZE 0x67
67 #define LOCK_PREFIX 0xF0
68 #define REPNZ_PREFIX 0xF2
69 #define REPZ_PREFIX 0xF3
74 #define REX_PREFIX_START 0x40
75 #define REX_PREFIX_STOP 0x4F
76 #define REX_64BIT_OPERAND_SIZE_MASK 0x08
79 // Two-byte Opcode Flag
81 #define TWO_BYTE_OPCODE_ESCAPE 0x0F