]> git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/Ipf/AccessDbr.s
Update the copyright notice format
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / EdkIIGlueLib / Library / BaseLib / Ipf / AccessDbr.s
1 /// Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
2 /// This program and the accompanying materials
3 /// are licensed and made available under the terms and conditions of the BSD License
4 /// which accompanies this distribution. The full text of the license may be found at
5 /// http://opensource.org/licenses/bsd-license.php
6 ///
7 /// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
8 /// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
9 ///
10 /// Module Name: AccessDbr.s
11 ///
12 ///
13 /// IPF specific Debug Breakpoint Registers accessing functions
14 ///
15
16 //---------------------------------------------------------------------------------
17 //++
18 // AsmReadDbr
19 //
20 // This routine is used to Reads the current value of Data Breakpoint Register (DBR).
21 //
22 // Arguments :
23 //
24 // On Entry : The 8-bit DBR index to read.
25 //
26 // Return Value: The current value of DBR by Index.
27 //
28 //--
29 //----------------------------------------------------------------------------------
30 .text
31 .type AsmReadDbr, @function
32 .proc AsmReadDbr
33 .regstk 1, 0, 0, 0
34
35 AsmReadDbr::
36 mov r8 = dbr[in0];;
37 br.ret.dpnt b0;;
38 .endp AsmReadDbr
39
40 //---------------------------------------------------------------------------------
41 //++
42 // AsmWriteDbr
43 //
44 // This routine is used to write the current value to Data Breakpoint Register (DBR).
45 //
46 // Arguments :
47 //
48 // On Entry : The 8-bit DBR index to read.
49 // The value should be written to DBR
50 //
51 // Return Value: The value written to DBR.
52 //
53 //--
54 //----------------------------------------------------------------------------------
55 .text
56 .type AsmWriteDbr, @function
57 .proc AsmWriteDbr
58 .regstk 2, 0, 0, 0
59
60 AsmWriteDbr::
61 mov dbr[in0] = in1
62 mov r8 = in1;;
63 srlz.d;;
64 br.ret.dpnt b0;;
65 .endp AsmWriteDbr
66
67
68 //---------------------------------------------------------------------------------
69 //++
70 // AsmReadIbr
71 //
72 // This routine is used to Reads the current value of Instruction Breakpoint Register (IBR).
73 //
74 // Arguments :
75 //
76 // On Entry : The 8-bit IBR index.
77 //
78 // Return Value: The current value of IBR by Index.
79 //
80 //--
81 //----------------------------------------------------------------------------------
82 .text
83 .type AsmReadIbr, @function
84 .proc AsmReadIbr
85 .regstk 1, 0, 0, 0
86
87 AsmReadIbr::
88 mov r8 = ibr[in0];;
89 br.ret.dpnt b0;;
90 .endp AsmReadIbr
91
92 //---------------------------------------------------------------------------------
93 //++
94 // AsmWriteIbr
95 //
96 // This routine is used to write the current value to Instruction Breakpoint Register (IBR).
97 //
98 // Arguments :
99 //
100 // On Entry : The 8-bit IBR index.
101 // The value should be written to IBR
102 //
103 // Return Value: The value written to IBR.
104 //
105 //--
106 //----------------------------------------------------------------------------------
107 .text
108 .type AsmWriteIbr, @function
109 .proc AsmWriteIbr
110 .regstk 2, 0, 0, 0
111
112 AsmWriteIbr::
113 mov ibr[in0] = in1
114 mov r8 = in1;;
115 srlz.i;;
116 br.ret.dpnt b0;;
117 .endp AsmWriteIbr