From: Ross Philipson <ross.philip...@oracle.com> A few MSR/CPUID/PCI x86 definitions added.
Signed-off-by: Ross Philipson <ross.philip...@oracle.com> Signed-off-by: Sergii Dmytruk <sergii.dmyt...@3mdeb.com> --- include/grub/i386/cpuid.h | 7 ++++--- include/grub/i386/msr.h | 6 ++++++ include/grub/i386/pci.h | 1 + 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/include/grub/i386/cpuid.h b/include/grub/i386/cpuid.h index e1c45dfc2..36e4ee05e 100644 --- a/include/grub/i386/cpuid.h +++ b/include/grub/i386/cpuid.h @@ -28,9 +28,10 @@ #define GRUB_SMX_CPUID_FEATURE (1<<6) /* AMD */ -#define GRUB_AMD_CPUID_FEATURES 0x80000001 -#define GRUB_SVM_CPUID_FEATURE (1<<2) -#define GRUB_AMD_CPUID_FUNC 0x8000000a +#define GRUB_AMD_CPUID_FEATURES 0x80000001 +#define GRUB_SVM_CPUID_FEATURE (1<<2) +#define GRUB_AMD_CPUID_FUNC 0x8000000a +#define GRUB_SKINIT_CPUID_FEATURE (1<<12) extern unsigned char grub_cpuid_has_longmode; extern unsigned char grub_cpuid_has_pae; diff --git a/include/grub/i386/msr.h b/include/grub/i386/msr.h index 9f29c6eb2..726aba9d4 100644 --- a/include/grub/i386/msr.h +++ b/include/grub/i386/msr.h @@ -30,6 +30,12 @@ #define GRUB_MSR_X86_APICBASE_ENABLE (1<<11) #define GRUB_MSR_X86_APICBASE_BASE (0xfffff<<12) /* Mask for APIC base address */ +#define GRUB_MSR_X86_X2APICBASE_ENABLE (1<<10) +#define GRUB_MSR_X86_X2APICBASE_ICR 0x830 +#define GRUB_MSR_X86_LAPIC_ICR_LO 0x300 +#define GRUB_MSR_X86_ICR_MODE_INIT (5<<8) +#define GRUB_MSR_X86_ICR_DELIVER_EXCL_SELF (3<<18) + #define GRUB_MSR_X86_FEATURE_CONTROL 0x0000003a #define GRUB_MSR_X86_ENABLE_VMX_IN_SMX (1<<1) /* Enable VMX inside SMX */ #define GRUB_MSR_X86_SENTER_FUNCTIONS (0x7f<<8) /* Bitmap of SENTER function enables */ diff --git a/include/grub/i386/pci.h b/include/grub/i386/pci.h index dffeb5695..952e8bcca 100644 --- a/include/grub/i386/pci.h +++ b/include/grub/i386/pci.h @@ -27,6 +27,7 @@ #define GRUB_PCI_DATA_REG 0xcfc #define GRUB_PCI_NUM_BUS 256 #define GRUB_PCI_NUM_DEVICES 32 +#define GRUB_PCI_NUM_FUNCTIONS 8 static inline grub_uint32_t grub_pci_read (grub_pci_address_t addr) -- 2.47.1 _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel