2 /// IPF specific Global Pointer and Stack Pointer accessing functions
4 /// Copyright (c) 2006, Intel Corporation
5 /// All rights reserved. This program and the accompanying materials
6 /// are licensed and made available under the terms and conditions of the BSD License
7 /// which accompanies this distribution. The full text of the license may be found at
8 /// http://opensource.org/licenses/bsd-license.php
10 /// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 /// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13 /// Module Name: AccessGp.s
17 //---------------------------------------------------------------------------------
21 // This routine is used to read the current value of 64-bit Global Pointer (GP).
27 // Return Value: The current GP value.
30 //----------------------------------------------------------------------------------
32 .type AsmReadGp, @function
40 //---------------------------------------------------------------------------------
44 // This routine is used to write the current value of 64-bit Global Pointer (GP).
48 // On Entry : The value need to be written.
50 // Return Value: The value have been written.
53 //----------------------------------------------------------------------------------
55 .type AsmWriteGp, @function
65 //---------------------------------------------------------------------------------
69 // This routine is used to read the current value of 64-bit Stack Pointer (SP).
75 // Return Value: The current SP value.
78 //----------------------------------------------------------------------------------
80 .type AsmReadSp, @function