X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=UefiCpuPkg%2FCpuDxe%2FCpuDxe.h;h=540f5f2dbf0fe4e8a4671c3e77d183f5ef281429;hp=a75ec0593f64a4ede0793d87fb6374d6927fb5bd;hb=147fd35c3e389ecd025dbfd243312bf5b22da7c9;hpb=661cab5d6a45308dcb7fb37c646e32efc1a087c4 diff --git a/UefiCpuPkg/CpuDxe/CpuDxe.h b/UefiCpuPkg/CpuDxe/CpuDxe.h index a75ec0593f..540f5f2dbf 100644 --- a/UefiCpuPkg/CpuDxe/CpuDxe.h +++ b/UefiCpuPkg/CpuDxe/CpuDxe.h @@ -1,7 +1,7 @@ /** @file - CPU DXE Module. + CPU DXE Module to produce CPU ARCH Protocol and CPU MP Protocol. - Copyright (c) 2008 - 2012, Intel Corporation. All rights reserved.
+ Copyright (c) 2008 - 2017, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -18,6 +18,11 @@ #include #include +#include +#include + +#include +#include #include #include @@ -30,12 +35,15 @@ #include #include #include -#include +#include +#include +#include +#include +#include +#include -// -// -// -#define INTERRUPT_VECTOR_NUMBER 256 +#include +#include #define EFI_MEMORY_CACHETYPE_MASK (EFI_MEMORY_UC | \ EFI_MEMORY_WC | \ @@ -44,6 +52,10 @@ EFI_MEMORY_UCE \ ) +#define EFI_MEMORY_PAGETYPE_MASK (EFI_MEMORY_RP | \ + EFI_MEMORY_XP | \ + EFI_MEMORY_RO \ + ) /** Flush CPU data cache. If the instruction cache is fully coherent @@ -220,30 +232,6 @@ CpuSetMemoryAttributes ( IN UINT64 Attributes ); -/** - Label of base address of IDT vector 0. - - This is just a label of base address of IDT vector 0. - -**/ -VOID -EFIAPI -AsmIdtVector00 ( - VOID - ); - -/** - Initializes the pointer to the external interrupt vector table. - - @param VectorTable Address of the external interrupt vector table. - -**/ -VOID -EFIAPI -InitializeExternalVectorTablePtr ( - EFI_CPU_INTERRUPT_HANDLER *VectorTable - ); - /** Initialize Global Descriptor Table. @@ -278,15 +266,14 @@ SetDataSelectors ( ); /** - Restore original Interrupt Descriptor Table Handler Address. - - @param Index The Index of the interrupt descriptor table handle. - + Update GCD memory space attributes according to current page table setup. **/ VOID -RestoreInterruptDescriptorTableHandlerAddress ( - IN UINTN Index +RefreshGcdMemoryAttributesFromPaging ( + VOID ); +extern BOOLEAN mIsAllocatingPageTable; + #endif