diff options
Diffstat (limited to 'EDK/Foundation/Cpu/Itanium')
-rw-r--r-- | EDK/Foundation/Cpu/Itanium/CpuIa64Lib.cif | 12 | ||||
-rw-r--r-- | EDK/Foundation/Cpu/Itanium/CpuIa64Lib.mak | 71 | ||||
-rw-r--r-- | EDK/Foundation/Cpu/Itanium/CpuIa64Lib.sdl | 25 | ||||
-rw-r--r-- | EDK/Foundation/Cpu/Itanium/CpuIa64Lib/CpuIA64Lib.inf | 38 | ||||
-rw-r--r-- | EDK/Foundation/Cpu/Itanium/CpuIa64Lib/IPF/CpuIa64.s | 33 | ||||
-rw-r--r-- | EDK/Foundation/Cpu/Itanium/Include/CpuIa64.h | 39 |
6 files changed, 218 insertions, 0 deletions
diff --git a/EDK/Foundation/Cpu/Itanium/CpuIa64Lib.cif b/EDK/Foundation/Cpu/Itanium/CpuIa64Lib.cif new file mode 100644 index 0000000..faea658 --- /dev/null +++ b/EDK/Foundation/Cpu/Itanium/CpuIa64Lib.cif @@ -0,0 +1,12 @@ +<component> + name = "CpuIa64Lib" + category = ModulePart + LocalRoot = "EDK\Foundation\Cpu\Itanium\" + RefName = "CpuIa64Lib" +[files] +"CpuIa64Lib.sdl" +"CpuIa64Lib.mak" +"Include\CpuIa64.h" +"CpuIa64Lib\IPF\CpuIa64.s" +"CpuIa64Lib\CpuIA64Lib.inf" +<endComponent> diff --git a/EDK/Foundation/Cpu/Itanium/CpuIa64Lib.mak b/EDK/Foundation/Cpu/Itanium/CpuIa64Lib.mak new file mode 100644 index 0000000..9519e7c --- /dev/null +++ b/EDK/Foundation/Cpu/Itanium/CpuIa64Lib.mak @@ -0,0 +1,71 @@ +#********************************************************************** +#********************************************************************** +#** ** +#** (C)Copyright 1985-2009, American Megatrends, Inc. ** +#** ** +#** All Rights Reserved. ** +#** ** +#** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 ** +#** ** +#** Phone: (770)-246-8600 ** +#** ** +#********************************************************************** +#********************************************************************** + +#********************************************************************** +# $Header: /Alaska/SOURCE/Modules/SharkBayRefCodes/IntelEDK/CpuIa64Lib/CpuIa64Lib.mak 1 1/20/12 4:00a Jeffch $ +# +# $Revision: 1 $ +# +# $Date: 1/20/12 4:00a $ +#********************************************************************** +# Revision History +# ---------------- +# $Log: /Alaska/SOURCE/Modules/SharkBayRefCodes/IntelEDK/CpuIa64Lib/CpuIa64Lib.mak $ +# +# 1 1/20/12 4:00a Jeffch +# Create Intel EDK 1117 Patch 7. +# +# 1 9/27/11 6:23a Wesleychen +# Intel EDK initially releases. +# +# 2 9/02/09 3:08a Iminglin +# EIP24919 +# +#********************************************************************** +#<AMI_FHDR_START> +# +# Name: CpuIa64Lib.mak +# +# Description: +# +#<AMI_FHDR_END> +#********************************************************************** +!IF "$(PROCESSOR)"=="IPF" +$(CPUIA64LIB) : CpuIa64Lib + +$(BUILD_DIR)\CpuIa64Lib.lib : CpuIa64Lib + +CpuIa64Lib : $(BUILD_DIR)\CpuIa64Lib.mak CpuIa64LibBin + +$(BUILD_DIR)\CpuIa64Lib.mak : $(CpuIa64Lib_DIR)\$(@B).cif $(CpuIa64Lib_DIR)\$(@B).mak $(BUILD_RULES) + $(CIF2MAK) $(CpuIa64Lib_DIR)\$(@B).cif $(CIF2MAK_DEFAULTS) + +CpuIa64LibBin : + $(MAKE) /$(MAKEFLAGS) $(EDK_DEFAULTS)\ + /f $(BUILD_DIR)\CpuIa64Lib.mak all\ + TYPE=LIBRARY +!ENDIF +#********************************************************************** +#********************************************************************** +#** ** +#** (C)Copyright 1985-2009, American Megatrends, Inc. ** +#** ** +#** All Rights Reserved. ** +#** ** +#** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 ** +#** ** +#** Phone: (770)-246-8600 ** +#** ** +#********************************************************************** +#**********************************************************************
\ No newline at end of file diff --git a/EDK/Foundation/Cpu/Itanium/CpuIa64Lib.sdl b/EDK/Foundation/Cpu/Itanium/CpuIa64Lib.sdl new file mode 100644 index 0000000..4acc255 --- /dev/null +++ b/EDK/Foundation/Cpu/Itanium/CpuIa64Lib.sdl @@ -0,0 +1,25 @@ +TOKEN + Name = CpuIa64Lib_SUPPORT + Value = 1 + TokenType = Boolean + TargetEQU = Yes + TargetMAK = Yes + Master = Yes + Help = "Main switch to enable CpuIa64Lib support in Project" +End + +TOKEN + Name = "CPUIA64LIB" + Value = "$(BUILD_DIR)\CpuIA64Lib.lib" + TokenType = Expression + TargetMAK = Yes +End + +PATH + Name = "CpuIa64Lib_DIR" +End + +MODULE + Help = "Includes CpuIa64Lib.mak to Project" + File = "CpuIa64Lib.mak" +End diff --git a/EDK/Foundation/Cpu/Itanium/CpuIa64Lib/CpuIA64Lib.inf b/EDK/Foundation/Cpu/Itanium/CpuIa64Lib/CpuIA64Lib.inf new file mode 100644 index 0000000..79cc2f7 --- /dev/null +++ b/EDK/Foundation/Cpu/Itanium/CpuIa64Lib/CpuIA64Lib.inf @@ -0,0 +1,38 @@ +#/*++ +# +# Copyright (c) 2004 - 2005, 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 +# http://opensource.org/licenses/bsd-license.php +# +# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +# +# Module Name: +# +# CpuIA64Lib.inf +# +# Abstract: +# +# Component description file for the Cpu IA64 library. +# +#--*/ + +[defines] +BASE_NAME = CpuIA64Lib +COMPONENT_TYPE = LIBRARY + +[sources.common] + +[sources.ipf] + Ipf\CpuIA64.s + +[includes.common] + $(EDK_SOURCE)\Foundation\Efi + . + $(EDK_SOURCE)\Foundation\Cpu\Itanium\Include + $(EDK_SOURCE)\Foundation\include + +[nmake.common] + C_STD_INCLUDE= diff --git a/EDK/Foundation/Cpu/Itanium/CpuIa64Lib/IPF/CpuIa64.s b/EDK/Foundation/Cpu/Itanium/CpuIa64Lib/IPF/CpuIa64.s new file mode 100644 index 0000000..1827daa --- /dev/null +++ b/EDK/Foundation/Cpu/Itanium/CpuIa64Lib/IPF/CpuIa64.s @@ -0,0 +1,33 @@ +//**************************************************************************** +// +// Copyright (c) 2004, 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 +// http://opensource.org/licenses/bsd-license.php +// +// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +// +// Module Name: +// +// CpuIA64.s +// +// Abstract: +// +// Contains basic assembly procedures to support IPF CPU. +// +//**************************************************************************** + +.file "CpuIA64.s" + +#include "IpfMacro.i" +#include "IpfDefines.h" + + +PROCEDURE_ENTRY (EfiReadTsc) + + mov r8 = ar.itc + br.ret.dpnt b0;; + +PROCEDURE_EXIT (EfiReadTsc)
\ No newline at end of file diff --git a/EDK/Foundation/Cpu/Itanium/Include/CpuIa64.h b/EDK/Foundation/Cpu/Itanium/Include/CpuIa64.h new file mode 100644 index 0000000..f491e3f --- /dev/null +++ b/EDK/Foundation/Cpu/Itanium/Include/CpuIa64.h @@ -0,0 +1,39 @@ +/*++ + +Copyright (c) 2004, 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 +http://opensource.org/licenses/bsd-license.php + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +Module Name: + + CpuIA64.h + +Abstract: + +--*/ + +#ifndef _CPU_IA64_H +#define _CPU_IA64_H + +#include "Tiano.h" + +UINT64 +EfiReadTsc ( + VOID + ) +/*++ +Routine Description: + Read Time stamp +Arguments: + None +Returns: + Return the read data +--*/ +; + +#endif |