]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Split AsmReadKr7() and AsmWriteKr7() from AccessKr.s file since these two APIs are...
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 1 Sep 2009 14:57:18 +0000 (14:57 +0000)
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 1 Sep 2009 14:57:18 +0000 (14:57 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9219 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Library/BaseLib/BaseLib.inf
MdePkg/Library/BaseLib/Ipf/AccessKr.s
MdePkg/Library/BaseLib/Ipf/AccessKr7.s [new file with mode: 0644]

index 849cfcb4d86e9dcd3164bfb398e7a3d75119ac71..7db361fe69f424000945ef11ab5a4b92a43ec4fa 100644 (file)
   Ipf/AccessPsr.s\r
   Ipf/AccessPmr.s\r
   Ipf/AccessKr.s\r
+  Ipf/AccessKr7.s\r
   Ipf/AccessGcr.s\r
   Ipf/AccessEicr.s\r
   Ipf/AccessDbr.s\r
index e95059a2cfc81d59afbcd26ee52d9d9ec4c07076..63137017e00da76a2d37349a35cd137d44076a42 100644 (file)
@@ -1,7 +1,7 @@
 /// @file\r
-///  IPF specific AsmReadKrX() and AsmWriteKrX functions, 'X' is from '0' to '7'\r
+///  IPF specific AsmReadKrX() and AsmWriteKrX() functions, 'X' is from '0' to '6'\r
 ///\r
-/// Copyright (c) 2006 - 2008, Intel Corporation\r
+/// Copyright (c) 2006 - 2009, Intel Corporation\r
 /// All rights reserved. This program and the accompanying materials\r
 /// are licensed and made available under the terms and conditions of the BSD License\r
 /// which accompanies this distribution.  The full text of the license may be found at\r
@@ -358,51 +358,3 @@ AsmWriteKr6::
         mov             r8 = in0;;\r
         br.ret.dpnt     b0;;\r
 .endp   AsmWriteKr6\r
-\r
-\r
-//---------------------------------------------------------------------------------\r
-//++\r
-// AsmReadKr7\r
-//\r
-// This routine is used to get KR7.\r
-//\r
-// Arguments :\r
-//\r
-// On Entry :  None.\r
-//\r
-// Return Value: The value store in KR7.\r
-//\r
-//--\r
-//----------------------------------------------------------------------------------\r
-.text\r
-.type   AsmReadKr7, @function\r
-.proc   AsmReadKr7\r
-\r
-AsmReadKr7::\r
-        mov             r8 = ar.k7;;\r
-        br.ret.dpnt     b0;;\r
-.endp   AsmReadKr7\r
-\r
-//---------------------------------------------------------------------------------\r
-//++\r
-// AsmWriteKr7\r
-//\r
-// This routine is used to write KR7.\r
-//\r
-// Arguments :\r
-//\r
-// On Entry :  None.\r
-//\r
-// Return Value: The value written to the KR7.\r
-//\r
-//--\r
-//----------------------------------------------------------------------------------\r
-.text\r
-.type   AsmWriteKr7, @function\r
-.proc   AsmWriteKr7\r
-\r
-AsmWriteKr7::\r
-        mov             ar.k7 = in0\r
-        mov             r8 = in0;;\r
-        br.ret.dpnt     b0;;\r
-.endp   AsmWriteKr7\r
diff --git a/MdePkg/Library/BaseLib/Ipf/AccessKr7.s b/MdePkg/Library/BaseLib/Ipf/AccessKr7.s
new file mode 100644 (file)
index 0000000..d422d76
--- /dev/null
@@ -0,0 +1,63 @@
+/// @file\r
+///  IPF specific AsmReadKr7() and AsmWriteKr7()\r
+///\r
+/// Copyright (c) 2006 - 2009, Intel Corporation\r
+/// All rights reserved. This program and the accompanying materials\r
+/// are licensed and made available under the terms and conditions of the BSD License\r
+/// which accompanies this distribution.  The full text of the license may be found at\r
+/// http://opensource.org/licenses/bsd-license.php\r
+///\r
+/// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+/// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+///\r
+/// Module Name: AccessKr7.s\r
+///\r
+///\r
+\r
+//---------------------------------------------------------------------------------\r
+//++\r
+// AsmReadKr7\r
+//\r
+// This routine is used to get KR7.\r
+//\r
+// Arguments :\r
+//\r
+// On Entry :  None.\r
+//\r
+// Return Value: The value store in KR7.\r
+//\r
+//--\r
+//----------------------------------------------------------------------------------\r
+.text\r
+.type   AsmReadKr7, @function\r
+.proc   AsmReadKr7\r
+\r
+AsmReadKr7::\r
+        mov             r8 = ar.k7;;\r
+        br.ret.dpnt     b0;;\r
+.endp   AsmReadKr7\r
+\r
+//---------------------------------------------------------------------------------\r
+//++\r
+// AsmWriteKr7\r
+//\r
+// This routine is used to write KR7.\r
+//\r
+// Arguments :\r
+//\r
+// On Entry :  None.\r
+//\r
+// Return Value: The value written to the KR7.\r
+//\r
+//--\r
+//----------------------------------------------------------------------------------\r
+.text\r
+.type   AsmWriteKr7, @function\r
+.proc   AsmWriteKr7\r
+.regstk 1, 3, 0, 0\r
+\r
+AsmWriteKr7::\r
+        mov             ar.k7 = in0\r
+        mov             r8 = in0;;\r
+        br.ret.dpnt     b0;;\r
+.endp   AsmWriteKr7\r