X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=UefiCpuPkg%2FCpuDxe%2FCpuDxe.h;h=540f5f2dbf0fe4e8a4671c3e77d183f5ef281429;hp=d42f82e0bda6ea9cc1939041f0f5a59bfa6840cf;hb=147fd35c3e389ecd025dbfd243312bf5b22da7c9;hpb=430fbbe0968c9ce6748203776a13e96d367c3bce diff --git a/UefiCpuPkg/CpuDxe/CpuDxe.h b/UefiCpuPkg/CpuDxe/CpuDxe.h index d42f82e0bd..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 - 2010, 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 @@ -28,11 +33,17 @@ #include #include #include - -// -// -// -#define INTERRUPT_VECTOR_NUMBER 256 +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include #define EFI_MEMORY_CACHETYPE_MASK (EFI_MEMORY_UC | \ EFI_MEMORY_WC | \ @@ -41,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 @@ -217,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. @@ -274,6 +265,15 @@ SetDataSelectors ( UINT16 Selector ); +/** + Update GCD memory space attributes according to current page table setup. +**/ +VOID +RefreshGcdMemoryAttributesFromPaging ( + VOID + ); + +extern BOOLEAN mIsAllocatingPageTable; #endif