+++ /dev/null
-/// @file\r
-/// IPF specific Global Pointer and Stack Pointer accessing functions\r
-///\r
-/// Copyright (c) 2006, 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: AccessGp.s\r
-///\r
-///\r
-\r
-//---------------------------------------------------------------------------------\r
-//++\r
-// AsmReadGp\r
-//\r
-// This routine is used to read the current value of 64-bit Global Pointer (GP).\r
-//\r
-// Arguments :\r
-//\r
-// On Entry :\r
-//\r
-// Return Value: The current GP value.\r
-//\r
-//--\r
-//----------------------------------------------------------------------------------\r
-.text\r
-.type AsmReadGp, @function\r
-.proc AsmReadGp\r
-\r
-AsmReadGp::\r
- mov r8 = gp;;\r
- br.ret.dpnt b0;;\r
-.endp AsmReadGp\r
-\r
-//---------------------------------------------------------------------------------\r
-//++\r
-// AsmWriteGp\r
-//\r
-// This routine is used to write the current value of 64-bit Global Pointer (GP).\r
-//\r
-// Arguments :\r
-//\r
-// On Entry : The value need to be written.\r
-//\r
-// Return Value: The value have been written.\r
-//\r
-//--\r
-//----------------------------------------------------------------------------------\r
-.text\r
-.type AsmWriteGp, @function\r
-.proc AsmWriteGp\r
-.regstk 1, 0, 0, 0\r
-\r
-AsmWriteGp::\r
- mov gp = in0\r
- mov r8 = in0;;\r
- br.ret.dpnt b0;;\r
-.endp AsmWriteGp\r
-\r
-//---------------------------------------------------------------------------------\r
-//++\r
-// AsmReadSp\r
-//\r
-// This routine is used to read the current value of 64-bit Stack Pointer (SP).\r
-//\r
-// Arguments :\r
-//\r
-// On Entry :\r
-//\r
-// Return Value: The current SP value.\r
-//\r
-//--\r
-//----------------------------------------------------------------------------------\r
-.text\r
-.type AsmReadSp, @function\r
-.proc AsmReadSp\r
-\r
-AsmReadSp::\r
- mov r8 = sp;;\r
- br.ret.dpnt b0;;\r
-.endp AsmReadSp\r