]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/Ipf/HwAccess.s
Update the copyright notice format
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / Pei / PeiLib / Ipf / HwAccess.s
CommitLineData
3eb9473e 1//++\r
4ea9375a
HT
2// Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>\r
3// This program and the accompanying materials \r
3eb9473e 4// are licensed and made available under the terms and conditions of the BSD License \r
5// which accompanies this distribution. The full text of the license may be found at \r
6// http://opensource.org/licenses/bsd-license.php \r
7// \r
8// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
9// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
10// \r
11// Module Name:\r
12//\r
13// HWAccess.s\r
14//\r
15// Abstract:\r
16//\r
17// Contains an implementation of Read/Write Kr7 for the Itanium-based architecture.\r
18//\r
19//\r
20//\r
21// Revision History:\r
22//\r
23//--\r
24\r
25 .file "HWAccess.s"\r
26#include "IpfMacro.i"\r
27\r
28\r
29//----------------------------------------------------------------------------------\r
30//++ \r
31//VOID\r
32//AsmWriteKr7 (\r
33// UINT64\r
34// );\r
35//\r
36// This routine saves the given input value into the kernel register 7\r
37//\r
38// Arguments :\r
39//\r
40// On Entry : 64 bit value to be saved.\r
41//\r
42// Return Value: None\r
43//\r
44//--\r
45//----------------------------------------------------------------------------------\r
46PROCEDURE_ENTRY (AsmWriteKr7)\r
47 NESTED_SETUP (1,2,0,0)\r
48 mov ar.k7 = in0;;\r
49 NESTED_RETURN\r
50\r
51PROCEDURE_EXIT (AsmWriteKr7)\r
52\r
53//---------------------------------------------------------------------------------\r
54//++\r
55//UINT64\r
56//AsmReadKr7 (\r
57// VOID\r
58// );\r
59//\r
60// This routine returns the value of the kernel register 7\r
61//\r
62// Arguments :\r
63//\r
64// On Entry : None\r
65//\r
66// Return Value: 64bit Value of the register.\r
67//\r
68//--\r
69//----------------------------------------------------------------------------------\r
70PROCEDURE_ENTRY (AsmReadKr7)\r
71 NESTED_SETUP (0,2,0,0)\r
72 mov r8 = ar.k7;;\r
73 NESTED_RETURN\r
74PROCEDURE_EXIT (AsmReadKr7)\r
75//----------------------------------------------------------------------------------\r
76\r
77\r