VirtualBox

Ignore:
Timestamp:
Oct 28, 2015 8:17:18 PM (9 years ago)
Author:
vboxsync
Message:

EFI/Firmware: 'svn merge /vendor/edk2/UDK2010.SR1 /vendor/edk2/current .', reverting and removing files+dirs listed in ReadMe.vbox, resolving conflicts with help from ../UDK2014.SP1/. This is a raw untested merge.

Location:
trunk/src/VBox/Devices/EFI/Firmware
Files:
2 edited

Legend:

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

  • trunk/src/VBox/Devices/EFI/Firmware/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugMp.h

    r48674 r58459  
    22  Header file for Multi-Processor support.
    33
    4   Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>
     4  Copyright (c) 2010 - 2013, Intel Corporation. All rights reserved.<BR>
    55  This program and the accompanying materials
    66  are licensed and made available under the terms and conditions of the BSD License
     
    2626  SPIN_LOCK                 MpContextSpinLock;   ///< Lock for writting MP context
    2727  SPIN_LOCK                 DebugPortSpinLock;   ///< Lock for access debug port
     28  SPIN_LOCK                 MailboxSpinLock;     ///< Lock for accessing mail box
    2829  UINT8                     CpuBreakMask[DEBUG_CPU_MAX_COUNT/8];        ///< Bitmask of all breaking CPUs
    2930  UINT8                     CpuStopStatusMask[DEBUG_CPU_MAX_COUNT/8];   ///< Bitmask of CPU stop status
     
    3334  UINT32                    DebugTimerInitCount; ///< Record BSP's init timer count
    3435  BOOLEAN                   IpiSentByAp;         ///< TRUR: IPI is sent by AP. TALSE: IPI is sent by BSP
    35   BOOLEAN                   RunCommandSet;       ///< TRUE: RUN commmand is not executed. FALSE : RUN command is executed.
     36  BOOLEAN                   RunCommandSet;       ///< TRUE: RUN commmand is executing. FALSE : RUN command has been executed.
    3637} DEBUG_MP_CONTEXT;
    3738
    38 extern CONST BOOLEAN               MultiProcessorDebugSupport;
    3939extern DEBUG_MP_CONTEXT volatile   mDebugMpContext;
    4040extern DEBUG_CPU_DATA   volatile   mDebugCpuData;
     
    6363
    6464/**
    65   Acquire access control on MP context.
     65  Acquire a spin lock when Multi-processor supported.
    6666
    6767  It will block in the function if cannot get the access control.
    68 
    69 **/
    70 VOID
    71 AcquireMpContextControl (
    72   VOID
    73   );
    74 
    75 /**
    76   Release access control on MP context.
    77 
    78 **/
    79 VOID
    80 ReleaseMpContextControl (
    81   VOID
    82   );
    83 
    84 /**
    85   Acquire access control on debug port.
    86 
    87   It will block in the function if cannot get the access control.
    88 
    89 **/
    90 VOID
    91 AcquireDebugPortControl (
    92   VOID
    93   );
    94 
    95 /**
    96   Release access control on debug port.
    97 
    98 **/
    99 VOID
    100 ReleaseDebugPortControl (
    101   VOID
     68  If Multi-processor is not supported, return directly.
     69
     70  @param[in, out] MpSpinLock      A pointer to the spin lock.
     71
     72**/
     73VOID
     74AcquireMpSpinLock (
     75  IN OUT SPIN_LOCK           *MpSpinLock
     76  );
     77
     78/**
     79  Release a spin lock when Multi-processor supported.
     80
     81  @param[in, out] MpSpinLock      A pointer to the spin lock.
     82
     83**/
     84VOID
     85ReleaseMpSpinLock (
     86  IN OUT SPIN_LOCK           *MpSpinLock
    10287  );
    10388
     
    182167
    183168/**
    184   Initialize debug timer.
     169  Set the IPI send by BPS/AP flag.
    185170
    186171  @param[in] IpiSentByApFlag   TRUE means this IPI is sent by AP.
     
    194179
    195180/**
    196   Check if any processor breaks.
     181  Check the next pending breaking CPU.
    197182
    198183  @retval others      There is at least one processor broken, the minimum
     
    202187**/
    203188UINT32
    204 FindCpuNotRunning (
     189FindNextPendingBreakCpu (
    205190  VOID
    206191  );
     
    218203  );
    219204
     205/**
     206  Check if the current processor is the first breaking processor.
     207
     208  If yes, halt other processors. 
     209 
     210  @param[in] ProcessorIndex   Processor index value.
     211 
     212  @return TRUE       This processor is the first breaking processor.
     213  @return FALSE      This processor is not the first breaking processor.
     214                           
     215**/
     216BOOLEAN
     217IsFirstBreakProcessor (
     218  IN UINT32              ProcessorIndex
     219  );
     220 
    220221#endif
    221222
Note: See TracChangeset for help on using the changeset viewer.

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