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