X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FInclude%2FIpf%2FProcessorBind.h;h=5fee1dccfaa890727c711f37fde4a40ef508a4c9;hp=6faddab55599685d570c29a084ac7de322d97c88;hb=4ef8fb487f756d576c7392266625ad1d48565df2;hpb=d936a70c253cf81b435c80108f8c8f1f61017748 diff --git a/MdePkg/Include/Ipf/ProcessorBind.h b/MdePkg/Include/Ipf/ProcessorBind.h index 6faddab555..5fee1dccfa 100644 --- a/MdePkg/Include/Ipf/ProcessorBind.h +++ b/MdePkg/Include/Ipf/ProcessorBind.h @@ -16,9 +16,9 @@ #define __PROCESSOR_BIND_H__ -// -// Define the processor type so other code can make processor based choices -// +/// +/// Define the processor type so other code can make processor based choices +/// #define MDE_CPU_IPF @@ -29,13 +29,18 @@ #if __INTEL_COMPILER +// +// Disable ICC's remark #869: "Parameter" was never referenced warning. +// This is legal ANSI C code so we disable the remark that is turned on with -Wall +// +#pragma warning ( disable : 869 ) + // // Disable ICC's remark #1418: external function definition with no prior declaration. // This is legal ANSI C code so we disable the remark that is turned on with /W4 // #pragma warning ( disable : 1418 ) - // // Disable ICC's remark #1419: external declaration in primary source file // This is legal ANSI C code so we disable the remark that is turned on with /W4 @@ -220,9 +225,9 @@ typedef INT64 INTN; #define GLOBAL_REMOVE_IF_UNREFERENCED #endif -// -// A pointer to a function in IPF points to a plabel. -// +/// +/// A pointer to a function in IPF points to a plabel. +/// typedef struct { UINT64 EntryPoint; UINT64 GP; @@ -235,5 +240,7 @@ typedef struct { UINT64 r11; } PAL_CALL_RETURN; +#define FUNCTION_ENTRY_POINT(p) (((EFI_PLABEL *)(p))->EntryPoint) + #endif