1 ;------------------------------------------------------------------------------ ;
2 ; Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
3 ; This program and the accompanying materials
4 ; are licensed and made available under the terms and conditions of the BSD License
5 ; which accompanies this distribution. The full text of the license may be found at
6 ; http://opensource.org/licenses/bsd-license.php.
8 ; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
9 ; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
17 ; This is the assembly code for MP support
19 ;-------------------------------------------------------------------------------
26 global ASM_PFX(AsmInitializeGdt)
27 ASM_PFX(AsmInitializeGdt):
31 mov edi, [ebp + 8] ; Load GDT register
33 lgdt [edi] ; and update the GDTR
36 mov eax, ASM_PFX(SetCodeSelectorFarJump)
39 ASM_PFX(SetCodeSelectorFarJump):
40 mov ax, PROTECT_MODE_DS ; Update the Base for the new selectors, too