]> git.proxmox.com Git - mirror_edk2.git/blame - UefiCpuPkg/Library/MpInitLib/MpLib.h
UefiCpuPkg/MpInitLib: Remove StartCount and volatile definition.
[mirror_edk2.git] / UefiCpuPkg / Library / MpInitLib / MpLib.h
CommitLineData
3e8ad6bd
JF
1/** @file\r
2 Common header file for MP Initialize Library.\r
3\r
7367cc6c 4 Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>\r
3e8ad6bd
JF
5 This program and the accompanying materials\r
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#ifndef _MP_LIB_H_\r
16#define _MP_LIB_H_\r
17\r
18#include <PiPei.h>\r
19\r
20#include <Register/Cpuid.h>\r
21#include <Register/Msr.h>\r
22#include <Register/LocalApic.h>\r
23#include <Register/Microcode.h>\r
24\r
25#include <Library/MpInitLib.h>\r
26#include <Library/BaseLib.h>\r
27#include <Library/BaseMemoryLib.h>\r
28#include <Library/MemoryAllocationLib.h>\r
29#include <Library/DebugLib.h>\r
30#include <Library/LocalApicLib.h>\r
31#include <Library/CpuLib.h>\r
32#include <Library/UefiCpuLib.h>\r
33#include <Library/TimerLib.h>\r
34#include <Library/SynchronizationLib.h>\r
35#include <Library/MtrrLib.h>\r
36#include <Library/HobLib.h>\r
37\r
b8b04307
JF
38#define WAKEUP_AP_SIGNAL SIGNATURE_32 ('S', 'T', 'A', 'P')\r
39\r
93ca4c0f
JF
40#define CPU_INIT_MP_LIB_HOB_GUID \\r
41 { \\r
42 0x58eb6a19, 0x3699, 0x4c68, { 0xa8, 0x36, 0xda, 0xcd, 0x8e, 0xdc, 0xad, 0x4a } \\r
43 }\r
44\r
41be0da5
JF
45//\r
46// The MP data for switch BSP\r
47//\r
48#define CPU_SWITCH_STATE_IDLE 0\r
49#define CPU_SWITCH_STATE_STORED 1\r
50#define CPU_SWITCH_STATE_LOADED 2\r
51\r
52//\r
53// CPU exchange information for switch BSP\r
54//\r
55typedef struct {\r
56 UINT8 State; // offset 0\r
57 UINTN StackPointer; // offset 4 / 8\r
58 IA32_DESCRIPTOR Gdtr; // offset 8 / 16\r
59 IA32_DESCRIPTOR Idtr; // offset 14 / 26\r
60} CPU_EXCHANGE_ROLE_INFO;\r
61\r
9ebcf0f4
JF
62//\r
63// AP loop state when APs are in idle state\r
64// It's value is the same with PcdCpuApLoopMode\r
65//\r
66typedef enum {\r
67 ApInHltLoop = 1,\r
68 ApInMwaitLoop = 2,\r
69 ApInRunLoop = 3\r
70} AP_LOOP_MODE;\r
71\r
e59f8f6b
JF
72//\r
73// AP initialization state during APs wakeup\r
74//\r
75typedef enum {\r
76 ApInitConfig = 1,\r
77 ApInitReconfig = 2,\r
78 ApInitDone = 3\r
79} AP_INIT_STATE;\r
80\r
03a1a925
JF
81//\r
82// AP state\r
83//\r
2a5997f8
ED
84// The state transitions for an AP when it process a procedure are:\r
85// Idle ----> Ready ----> Busy ----> Idle\r
86// [BSP] [AP] [AP]\r
87//\r
03a1a925
JF
88typedef enum {\r
89 CpuStateIdle,\r
90 CpuStateReady,\r
91 CpuStateBusy,\r
03a1a925
JF
92 CpuStateDisabled\r
93} CPU_STATE;\r
94\r
68cb9330
JF
95//\r
96// CPU volatile registers around INIT-SIPI-SIPI\r
97//\r
98typedef struct {\r
99 UINTN Cr0;\r
100 UINTN Cr3;\r
101 UINTN Cr4;\r
102 UINTN Dr0;\r
103 UINTN Dr1;\r
104 UINTN Dr2;\r
105 UINTN Dr3;\r
106 UINTN Dr6;\r
107 UINTN Dr7;\r
e9415e48
JW
108 IA32_DESCRIPTOR Gdtr;\r
109 IA32_DESCRIPTOR Idtr;\r
110 UINT16 Tr;\r
68cb9330
JF
111} CPU_VOLATILE_REGISTERS;\r
112\r
e59f8f6b
JF
113//\r
114// AP related data\r
115//\r
116typedef struct {\r
117 SPIN_LOCK ApLock;\r
118 volatile UINT32 *StartupApSignal;\r
119 volatile UINTN ApFunction;\r
120 volatile UINTN ApFunctionArgument;\r
e59f8f6b 121 BOOLEAN CpuHealthy;\r
03a1a925 122 volatile CPU_STATE State;\r
68cb9330 123 CPU_VOLATILE_REGISTERS VolatileRegisters;\r
e59f8f6b
JF
124 BOOLEAN Waiting;\r
125 BOOLEAN *Finished;\r
126 UINT64 ExpectedTime;\r
127 UINT64 CurrentTime;\r
128 UINT64 TotalTime;\r
129 EFI_EVENT WaitEvent;\r
130} CPU_AP_DATA;\r
131\r
132//\r
133// Basic CPU information saved in Guided HOB.\r
134// Because the contents will be shard between PEI and DXE,\r
135// we need to make sure the each fields offset same in different\r
136// architecture.\r
137//\r
dd3fa0cd 138#pragma pack (1)\r
e59f8f6b
JF
139typedef struct {\r
140 UINT32 InitialApicId;\r
141 UINT32 ApicId;\r
142 UINT32 Health;\r
dd3fa0cd 143 UINT64 ApTopOfStack;\r
e59f8f6b 144} CPU_INFO_IN_HOB;\r
dd3fa0cd 145#pragma pack ()\r
e59f8f6b 146\r
f7f85d83
JF
147//\r
148// AP reset code information including code address and size,\r
149// this structure will be shared be C code and assembly code.\r
150// It is natural aligned by design.\r
151//\r
152typedef struct {\r
153 UINT8 *RendezvousFunnelAddress;\r
154 UINTN ModeEntryOffset;\r
155 UINTN RendezvousFunnelSize;\r
156 UINT8 *RelocateApLoopFuncAddress;\r
157 UINTN RelocateApLoopFuncSize;\r
f32bfe6d 158 UINTN ModeTransitionOffset;\r
f7f85d83 159} MP_ASSEMBLY_ADDRESS_MAP;\r
3e8ad6bd 160\r
e59f8f6b
JF
161typedef struct _CPU_MP_DATA CPU_MP_DATA;\r
162\r
d94e5f67
JF
163#pragma pack(1)\r
164\r
165//\r
166// MP CPU exchange information for AP reset code\r
167// This structure is required to be packed because fixed field offsets\r
168// into this structure are used in assembly code in this module\r
169//\r
170typedef struct {\r
171 UINTN Lock;\r
172 UINTN StackStart;\r
173 UINTN StackSize;\r
174 UINTN CFunction;\r
175 IA32_DESCRIPTOR GdtrProfile;\r
176 IA32_DESCRIPTOR IdtrProfile;\r
177 UINTN BufferStart;\r
178 UINTN ModeOffset;\r
37676b9f 179 UINTN ApIndex;\r
d94e5f67
JF
180 UINTN CodeSegment;\r
181 UINTN DataSegment;\r
5c66d125 182 UINTN EnableExecuteDisable;\r
d94e5f67 183 UINTN Cr3;\r
46d4b885
JF
184 UINTN InitFlag;\r
185 CPU_INFO_IN_HOB *CpuInfo;\r
0594ec41 186 UINTN NumApsExecuting;\r
e59f8f6b 187 CPU_MP_DATA *CpuMpData;\r
3b2928b4 188 UINTN InitializeFloatingPointUnitsAddress;\r
f32bfe6d
JW
189 UINT32 ModeTransitionMemory;\r
190 UINT16 ModeTransitionSegment;\r
191 UINT32 ModeHighMemory;\r
192 UINT16 ModeHighSegment;\r
d94e5f67
JF
193} MP_CPU_EXCHANGE_INFO;\r
194\r
195#pragma pack()\r
e59f8f6b
JF
196\r
197//\r
198// CPU MP Data save in memory\r
199//\r
200struct _CPU_MP_DATA {\r
201 UINT64 CpuInfoInHob;\r
202 UINT32 CpuCount;\r
203 UINT32 BspNumber;\r
204 //\r
205 // The above fields data will be passed from PEI to DXE\r
206 // Please make sure the fields offset same in the different\r
207 // architecture.\r
208 //\r
209 SPIN_LOCK MpLock;\r
210 UINTN Buffer;\r
211 UINTN CpuApStackSize;\r
212 MP_ASSEMBLY_ADDRESS_MAP AddressMap;\r
213 UINTN WakeupBuffer;\r
66833b2a 214 UINTN WakeupBufferHigh;\r
e59f8f6b
JF
215 UINTN BackupBuffer;\r
216 UINTN BackupBufferSize;\r
e59f8f6b 217\r
e59f8f6b 218 volatile UINT32 FinishedCount;\r
2da3e96c 219 UINT32 RunningCount;\r
e59f8f6b
JF
220 BOOLEAN SingleThread;\r
221 EFI_AP_PROCEDURE Procedure;\r
222 VOID *ProcArguments;\r
223 BOOLEAN *Finished;\r
224 UINT64 ExpectedTime;\r
225 UINT64 CurrentTime;\r
226 UINT64 TotalTime;\r
227 EFI_EVENT WaitEvent;\r
228 UINTN **FailedCpuList;\r
229\r
230 AP_INIT_STATE InitFlag;\r
231 BOOLEAN X2ApicEnable;\r
41be0da5 232 BOOLEAN SwitchBspFlag;\r
b3775af2 233 UINTN NewBspNumber;\r
41be0da5
JF
234 CPU_EXCHANGE_ROLE_INFO BSPInfo;\r
235 CPU_EXCHANGE_ROLE_INFO APInfo;\r
e59f8f6b
JF
236 MTRR_SETTINGS MtrrTable;\r
237 UINT8 ApLoopMode;\r
238 UINT8 ApTargetCState;\r
239 UINT16 PmCodeSegment;\r
240 CPU_AP_DATA *CpuData;\r
241 volatile MP_CPU_EXCHANGE_INFO *MpCpuExchangeInfo;\r
ffab2442
JF
242\r
243 UINT32 CurrentTimerCount;\r
244 UINTN DivideValue;\r
245 UINT8 Vector;\r
246 BOOLEAN PeriodicMode;\r
247 BOOLEAN TimerInterruptState;\r
1e3f7a37
ED
248 UINT64 MicrocodePatchAddress;\r
249 UINT64 MicrocodePatchRegionSize;\r
2a089134
ED
250\r
251 UINT32 ProcessorSignature;\r
252 UINT32 ProcessorFlags;\r
253 UINT64 MicrocodeDataAddress;\r
254 UINT32 MicrocodeRevision;\r
58942277
ED
255\r
256 //\r
257 // Whether need to use Init-Sipi-Sipi to wake up the APs.\r
258 // Two cases need to set this value to TRUE. One is in HLT\r
259 // loop mode, the other is resume from S3 which loop mode\r
260 // will be hardcode change to HLT mode by PiSmmCpuDxeSmm \r
261 // driver.\r
262 //\r
263 BOOLEAN WakeUpByInitSipiSipi;\r
e59f8f6b 264};\r
93ca4c0f
JF
265\r
266extern EFI_GUID mCpuInitMpLibHobGuid;\r
267\r
76157021
JF
268/**\r
269 Assembly code to place AP into safe loop mode.\r
270\r
271 Place AP into targeted C-State if MONITOR is supported, otherwise\r
272 place AP into hlt state.\r
273 Place AP in protected mode if the current is long mode. Due to AP maybe\r
274 wakeup by some hardware event. It could avoid accessing page table that\r
275 may not available during booting to OS.\r
276\r
277 @param[in] MwaitSupport TRUE indicates MONITOR is supported.\r
278 FALSE indicates MONITOR is not supported.\r
279 @param[in] ApTargetCState Target C-State value.\r
280 @param[in] PmCodeSegment Protected mode code segment value.\r
281**/\r
282typedef\r
283VOID\r
284(EFIAPI * ASM_RELOCATE_AP_LOOP) (\r
285 IN BOOLEAN MwaitSupport,\r
286 IN UINTN ApTargetCState,\r
bf2786dc 287 IN UINTN PmCodeSegment,\r
9f91cb01
JF
288 IN UINTN TopOfApStack,\r
289 IN UINTN NumberToFinish\r
76157021 290 );\r
f7f85d83
JF
291\r
292/**\r
293 Assembly code to get starting address and size of the rendezvous entry for APs.\r
294 Information for fixing a jump instruction in the code is also returned.\r
295\r
296 @param[out] AddressMap Output buffer for address map information.\r
297**/\r
298VOID\r
299EFIAPI\r
300AsmGetAddressMap (\r
301 OUT MP_ASSEMBLY_ADDRESS_MAP *AddressMap\r
302 );\r
303\r
41be0da5
JF
304/**\r
305 This function is called by both the BSP and the AP which is to become the BSP to\r
306 Exchange execution context including stack between them. After return from this\r
307 function, the BSP becomes AP and the AP becomes the BSP.\r
308\r
309 @param[in] MyInfo Pointer to buffer holding the exchanging information for the executing processor.\r
310 @param[in] OthersInfo Pointer to buffer holding the exchanging information for the peer.\r
311\r
312**/\r
313VOID\r
314EFIAPI\r
315AsmExchangeRole (\r
316 IN CPU_EXCHANGE_ROLE_INFO *MyInfo,\r
317 IN CPU_EXCHANGE_ROLE_INFO *OthersInfo\r
318 );\r
319\r
93ca4c0f
JF
320/**\r
321 Get the pointer to CPU MP Data structure.\r
322\r
323 @return The pointer to CPU MP Data structure.\r
324**/\r
325CPU_MP_DATA *\r
326GetCpuMpData (\r
327 VOID\r
328 );\r
329\r
330/**\r
331 Save the pointer to CPU MP Data structure.\r
332\r
333 @param[in] CpuMpData The pointer to CPU MP Data structure will be saved.\r
334**/\r
335VOID\r
336SaveCpuMpData (\r
337 IN CPU_MP_DATA *CpuMpData\r
338 );\r
339\r
ed66e0e3
JF
340\r
341/**\r
a6b3d753 342 Get available system memory below 1MB by specified size.\r
ed66e0e3 343\r
a6b3d753
SZ
344 @param[in] WakeupBufferSize Wakeup buffer size required\r
345\r
346 @retval other Return wakeup buffer address below 1MB.\r
347 @retval -1 Cannot find free memory below 1MB.\r
ed66e0e3 348**/\r
a6b3d753
SZ
349UINTN\r
350GetWakeupBuffer (\r
351 IN UINTN WakeupBufferSize\r
ed66e0e3
JF
352 );\r
353\r
f32bfe6d
JW
354/**\r
355 Get available EfiBootServicesCode memory below 4GB by specified size.\r
356\r
357 This buffer is required to safely transfer AP from real address mode to\r
358 protected mode or long mode, due to the fact that the buffer returned by\r
359 GetWakeupBuffer() may be marked as non-executable.\r
360\r
361 @param[in] BufferSize Wakeup transition buffer size.\r
362\r
363 @retval other Return wakeup transition buffer address below 4GB.\r
364 @retval 0 Cannot find free memory below 4GB.\r
365**/\r
366UINTN\r
367GetModeTransitionBuffer (\r
368 IN UINTN BufferSize\r
369 );\r
370\r
96f5920d
JF
371/**\r
372 This function will be called by BSP to wakeup AP.\r
373\r
374 @param[in] CpuMpData Pointer to CPU MP Data\r
375 @param[in] Broadcast TRUE: Send broadcast IPI to all APs\r
376 FALSE: Send IPI to AP by ApicId\r
377 @param[in] ProcessorNumber The handle number of specified processor\r
378 @param[in] Procedure The function to be invoked by AP\r
379 @param[in] ProcedureArgument The argument to be passed into AP function\r
380**/\r
381VOID\r
382WakeUpAP (\r
383 IN CPU_MP_DATA *CpuMpData,\r
384 IN BOOLEAN Broadcast,\r
385 IN UINTN ProcessorNumber,\r
386 IN EFI_AP_PROCEDURE Procedure, OPTIONAL\r
387 IN VOID *ProcedureArgument OPTIONAL\r
388 );\r
389\r
93ca4c0f
JF
390/**\r
391 Initialize global data for MP support.\r
392\r
393 @param[in] CpuMpData The pointer to CPU MP Data structure.\r
394**/\r
395VOID\r
396InitMpGlobalData (\r
397 IN CPU_MP_DATA *CpuMpData\r
398 );\r
399\r
86efe976
JF
400/**\r
401 Worker function to execute a caller provided function on all enabled APs.\r
402\r
403 @param[in] Procedure A pointer to the function to be run on\r
404 enabled APs of the system.\r
405 @param[in] SingleThread If TRUE, then all the enabled APs execute\r
406 the function specified by Procedure one by\r
407 one, in ascending order of processor handle\r
408 number. If FALSE, then all the enabled APs\r
409 execute the function specified by Procedure\r
410 simultaneously.\r
411 @param[in] WaitEvent The event created by the caller with CreateEvent()\r
412 service.\r
367284e7 413 @param[in] TimeoutInMicroseconds Indicates the time limit in microseconds for\r
86efe976
JF
414 APs to return from Procedure, either for\r
415 blocking or non-blocking mode.\r
416 @param[in] ProcedureArgument The parameter passed into Procedure for\r
417 all APs.\r
418 @param[out] FailedCpuList If all APs finish successfully, then its\r
419 content is set to NULL. If not all APs\r
420 finish before timeout expires, then its\r
421 content is set to address of the buffer\r
422 holding handle numbers of the failed APs.\r
423\r
424 @retval EFI_SUCCESS In blocking mode, all APs have finished before\r
425 the timeout expired.\r
426 @retval EFI_SUCCESS In non-blocking mode, function has been dispatched\r
427 to all enabled APs.\r
428 @retval others Failed to Startup all APs.\r
429\r
430**/\r
431EFI_STATUS\r
432StartupAllAPsWorker (\r
433 IN EFI_AP_PROCEDURE Procedure,\r
434 IN BOOLEAN SingleThread,\r
435 IN EFI_EVENT WaitEvent OPTIONAL,\r
436 IN UINTN TimeoutInMicroseconds,\r
437 IN VOID *ProcedureArgument OPTIONAL,\r
438 OUT UINTN **FailedCpuList OPTIONAL\r
439 );\r
440\r
20ae5774
JF
441/**\r
442 Worker function to let the caller get one enabled AP to execute a caller-provided\r
443 function.\r
444\r
445 @param[in] Procedure A pointer to the function to be run on\r
446 enabled APs of the system.\r
447 @param[in] ProcessorNumber The handle number of the AP.\r
448 @param[in] WaitEvent The event created by the caller with CreateEvent()\r
449 service.\r
367284e7 450 @param[in] TimeoutInMicroseconds Indicates the time limit in microseconds for\r
20ae5774
JF
451 APs to return from Procedure, either for\r
452 blocking or non-blocking mode.\r
453 @param[in] ProcedureArgument The parameter passed into Procedure for\r
454 all APs.\r
455 @param[out] Finished If AP returns from Procedure before the\r
456 timeout expires, its content is set to TRUE.\r
457 Otherwise, the value is set to FALSE.\r
458\r
459 @retval EFI_SUCCESS In blocking mode, specified AP finished before\r
460 the timeout expires.\r
461 @retval others Failed to Startup AP.\r
462\r
463**/\r
464EFI_STATUS\r
465StartupThisAPWorker (\r
466 IN EFI_AP_PROCEDURE Procedure,\r
467 IN UINTN ProcessorNumber,\r
468 IN EFI_EVENT WaitEvent OPTIONAL,\r
469 IN UINTN TimeoutInMicroseconds,\r
470 IN VOID *ProcedureArgument OPTIONAL,\r
471 OUT BOOLEAN *Finished OPTIONAL\r
472 );\r
473\r
41be0da5
JF
474/**\r
475 Worker function to switch the requested AP to be the BSP from that point onward.\r
476\r
477 @param[in] ProcessorNumber The handle number of AP that is to become the new BSP.\r
478 @param[in] EnableOldBSP If TRUE, then the old BSP will be listed as an\r
479 enabled AP. Otherwise, it will be disabled.\r
480\r
481 @retval EFI_SUCCESS BSP successfully switched.\r
7367cc6c 482 @retval others Failed to switch BSP.\r
41be0da5
JF
483\r
484**/\r
485EFI_STATUS\r
486SwitchBSPWorker (\r
487 IN UINTN ProcessorNumber,\r
488 IN BOOLEAN EnableOldBSP\r
489 );\r
490\r
e37109bc
JF
491/**\r
492 Worker function to let the caller enable or disable an AP from this point onward.\r
493 This service may only be called from the BSP.\r
494\r
495 @param[in] ProcessorNumber The handle number of AP.\r
496 @param[in] EnableAP Specifies the new state for the processor for\r
497 enabled, FALSE for disabled.\r
498 @param[in] HealthFlag If not NULL, a pointer to a value that specifies\r
499 the new health status of the AP.\r
500\r
501 @retval EFI_SUCCESS The specified AP was enabled or disabled successfully.\r
502 @retval others Failed to Enable/Disable AP.\r
503\r
504**/\r
505EFI_STATUS\r
506EnableDisableApWorker (\r
507 IN UINTN ProcessorNumber,\r
508 IN BOOLEAN EnableAP,\r
509 IN UINT32 *HealthFlag OPTIONAL\r
510 );\r
511\r
93ca4c0f
JF
512/**\r
513 Get pointer to CPU MP Data structure from GUIDed HOB.\r
514\r
515 @return The pointer to CPU MP Data structure.\r
516**/\r
517CPU_MP_DATA *\r
518GetCpuMpDataFromGuidedHob (\r
519 VOID\r
520 );\r
08085f08
JF
521\r
522/** Checks status of specified AP.\r
523\r
524 This function checks whether the specified AP has finished the task assigned\r
525 by StartupThisAP(), and whether timeout expires.\r
526\r
527 @param[in] ProcessorNumber The handle number of processor.\r
528\r
529 @retval EFI_SUCCESS Specified AP has finished task assigned by StartupThisAPs().\r
530 @retval EFI_TIMEOUT The timeout expires.\r
531 @retval EFI_NOT_READY Specified AP has not finished task and timeout has not expired.\r
532**/\r
533EFI_STATUS\r
534CheckThisAP (\r
535 IN UINTN ProcessorNumber\r
536 );\r
537\r
538/**\r
539 Checks status of all APs.\r
540\r
541 This function checks whether all APs have finished task assigned by StartupAllAPs(),\r
542 and whether timeout expires.\r
543\r
544 @retval EFI_SUCCESS All APs have finished task assigned by StartupAllAPs().\r
545 @retval EFI_TIMEOUT The timeout expires.\r
546 @retval EFI_NOT_READY APs have not finished task and timeout has not expired.\r
547**/\r
548EFI_STATUS\r
549CheckAllAPs (\r
550 VOID\r
551 );\r
552\r
553/**\r
554 Checks APs status and updates APs status if needed.\r
555\r
556**/\r
557VOID\r
558CheckAndUpdateApsStatus (\r
559 VOID\r
560 );\r
561\r
94f63c76
JF
562/**\r
563 Detect whether specified processor can find matching microcode patch and load it.\r
564\r
2a089134
ED
565 @param[in] CpuMpData The pointer to CPU MP Data structure.\r
566 @param[in] IsBspCallIn Indicate whether the caller is BSP or not.\r
94f63c76
JF
567**/\r
568VOID\r
569MicrocodeDetect (\r
2a089134
ED
570 IN CPU_MP_DATA *CpuMpData,\r
571 IN BOOLEAN IsBspCallIn\r
94f63c76
JF
572 );\r
573\r
4d3314f6
JF
574/**\r
575 Detect whether Mwait-monitor feature is supported.\r
576\r
577 @retval TRUE Mwait-monitor feature is supported.\r
578 @retval FALSE Mwait-monitor feature is not supported.\r
579**/\r
580BOOLEAN\r
581IsMwaitSupport (\r
582 VOID\r
583 );\r
584\r
43c9fdcc
JF
585/**\r
586 Enable Debug Agent to support source debugging on AP function.\r
587\r
588**/\r
589VOID\r
590EnableDebugAgent (\r
591 VOID\r
592 );\r
593\r
3e8ad6bd
JF
594#endif\r
595\r