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