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 ;-------------------------------------------------------------------------------
28 AsmInitializeGdt PROC near C PUBLIC
32 mov edi, [ebp + 8] ; Load GDT register
34 mov ax,cs ; Get the selector data from our code image
36 lgdt FWORD PTR es:[edi] ; and update the GDTR
39 lea eax, SetCodeSelectorFarJump
42 SetCodeSelectorFarJump:
43 mov ax, PROTECT_MODE_DS ; Update the Base for the new selectors, too