ExchangeInfo->PmodeOffset = PeiCpuMpData->AddressMap.PModeEntryOffset;\r
ExchangeInfo->LmodeOffset = PeiCpuMpData->AddressMap.LModeEntryOffset;\r
ExchangeInfo->Cr3 = AsmReadCr3 ();\r
+ ExchangeInfo->CodeSegment = AsmReadCs ();\r
+ ExchangeInfo->DataSegment = AsmReadDs ();\r
ExchangeInfo->CFunction = (UINTN) ApCFunction;\r
ExchangeInfo->NumApsExecuting = 0;\r
ExchangeInfo->PeiCpuMpData = PeiCpuMpData;\r
UINTN BufferStart;\r
UINTN PmodeOffset;\r
UINTN NumApsExecuting;\r
+ UINTN CodeSegment;\r
+ UINTN DataSegment;\r
UINTN LmodeOffset;\r
UINTN Cr3;\r
PEI_CPU_MP_DATA *PeiCpuMpData;\r
;------------------------------------------------------------------------------ ;\r
-; Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
+; Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>\r
; This program and the accompanying materials\r
; are licensed and made available under the terms and conditions of the BSD License\r
; which accompanies this distribution. The full text of the license may be found at\r
BufferStartLocation equ LockLocation + 1Ch\r
PmodeOffsetLocation equ LockLocation + 20h\r
NumApsExecutingLoction equ LockLocation + 24h\r
+CodeSegmentLocation equ LockLocation + 28h\r
+DataSegmentLocation equ LockLocation + 2Ch\r
\r
;------------------------------------------------------------------------------ ;\r
-; Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
+; Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>\r
; This program and the accompanying materials\r
; are licensed and made available under the terms and conditions of the BSD License\r
; which accompanies this distribution. The full text of the license may be found at\r
BufferStartLocation equ LockLocation + 34h\r
PmodeOffsetLocation equ LockLocation + 3Ch\r
NumApsExecutingLoction equ LockLocation + 44h\r
-LmodeOffsetLocation equ LockLocation + 4Ch\r
-Cr3Location equ LockLocation + 54h\r
+CodeSegmentLocation equ LockLocation + 4Ch\r
+DataSegmentLocation equ LockLocation + 54h\r
+LmodeOffsetLocation equ LockLocation + 5Ch\r
+Cr3Location equ LockLocation + 64h\r
\r
;-------------------------------------------------------------------------------\r