VirtualBox

Ignore:
Timestamp:
Aug 12, 2020 4:09:12 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
139865
Message:

Devices/EFI: Merge edk-stable202005 and make it build, bugref:4643

Location:
trunk/src/VBox/Devices/EFI/FirmwareNew
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/FirmwareNew

  • trunk/src/VBox/Devices/EFI/FirmwareNew/UefiCpuPkg/Include/Library/RegisterCpuFeaturesLib.h

    r80721 r85718  
    22  Register CPU Features Library to register and manage CPU features.
    33
    4   Copyright (c) 2017 - 2019, Intel Corporation. All rights reserved.<BR>
     4  Copyright (c) 2017 - 2020, Intel Corporation. All rights reserved.<BR>
    55  SPDX-License-Identifier: BSD-2-Clause-Patent
    66
     
    2626#define CPU_FEATURE_ACPI                            3
    2727#define CPU_FEATURE_EIST                            4
    28 #define CPU_FEATURE_XD                              5
     28#define CPU_FEATURE_RESERVED_5                      5
    2929#define CPU_FEATURE_FASTSTRINGS                     6
    3030#define CPU_FEATURE_VMX                             7
     
    7070#define CPU_FEATURE_BEFORE_ALL                      BIT23
    7171#define CPU_FEATURE_AFTER_ALL                       BIT24
    72 //
    73 // CPU_FEATURE_BEFORE and CPU_FEATURE_AFTER only mean Thread scope
    74 // before and Thread scope after.
    75 // It will be replace with CPU_FEATURE_THREAD_BEFORE and
    76 // CPU_FEATURE_THREAD_AFTER, and should not be used anymore.
    77 //
    78 #define CPU_FEATURE_BEFORE                          BIT25
    79 #define CPU_FEATURE_AFTER                           BIT26
    80 
    81 #define CPU_FEATURE_THREAD_BEFORE                   CPU_FEATURE_BEFORE
    82 #define CPU_FEATURE_THREAD_AFTER                    CPU_FEATURE_AFTER
     72#define CPU_FEATURE_THREAD_BEFORE                   BIT25
     73#define CPU_FEATURE_THREAD_AFTER                    BIT26
    8374#define CPU_FEATURE_CORE_BEFORE                     BIT27
    8475#define CPU_FEATURE_CORE_AFTER                      BIT28
     
    8980
    9081///
     82/// The bit field to indicate whether the processor is the first in its parent scope.
     83///
     84typedef struct {
     85  //
     86  // Set to 1 when current processor is the first thread in the core it resides in.
     87  //
     88  UINT32 Thread   : 1;
     89  //
     90  // Set to 1 when current processor is a thread of the first core in the module it resides in.
     91  //
     92  UINT32 Core     : 1;
     93  //
     94  // Set to 1 when current processor is a thread of the first module in the tile it resides in.
     95  //
     96  UINT32 Module   : 1;
     97  //
     98  // Set to 1 when current processor is a thread of the first tile in the die it resides in.
     99  //
     100  UINT32 Tile     : 1;
     101  //
     102  // Set to 1 when current processor is a thread of the first die in the package it resides in.
     103  //
     104  UINT32 Die      : 1;
     105  //
     106  // Set to 1 when current processor is a thread of the first package in the system.
     107  //
     108  UINT32 Package  : 1;
     109  UINT32 Reserved : 26;
     110} REGISTER_CPU_FEATURE_FIRST_PROCESSOR;
     111
     112///
    91113/// CPU Information passed into the SupportFunc and InitializeFunc of the
    92114/// RegisterCpuFeature() library function.  This structure contains information
     
    98120  ///
    99121  EFI_PROCESSOR_INFORMATION            ProcessorInfo;
     122
     123  ///
     124  /// The bit flag indicating whether the CPU is the first Thread/Core/Module/Tile/Die/Package in its parent scope.
     125  ///
     126  REGISTER_CPU_FEATURE_FIRST_PROCESSOR First;
    100127  ///
    101128  /// The Display Family of the CPU computed from CPUID leaf CPUID_VERSION_INFO
  • trunk/src/VBox/Devices/EFI/FirmwareNew/UefiCpuPkg/Include/Library/SmmCpuFeaturesLib.h

    r80721 r85718  
    339339
    340340  @retval EFI_SUCCESS           The register was read from Save State.
    341   @retval EFI_INVALID_PARAMTER  Buffer is NULL.
     341  @retval EFI_INVALID_PARAMETER  Buffer is NULL.
    342342  @retval EFI_UNSUPPORTED       This function does not support reading Register.
    343343
     
    365365
    366366  @retval EFI_SUCCESS           The register was written to Save State.
    367   @retval EFI_INVALID_PARAMTER  Buffer is NULL.
     367  @retval EFI_INVALID_PARAMETER  Buffer is NULL.
    368368  @retval EFI_UNSUPPORTED       This function does not support writing Register.
    369369**/
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette