1 /// Copyright (c) 2006, Intel Corporation
2 /// All rights reserved. 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
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.
10 /// Module Name: AccessGp.s
13 /// IPF specific Global Pointer and Stack Pointer accessing functions
16 //---------------------------------------------------------------------------------
20 // This routine is used to read the current value of 64-bit Global Pointer (GP).
26 // Return Value: The current GP value.
29 //----------------------------------------------------------------------------------
31 .type AsmReadGp, @function
39 //---------------------------------------------------------------------------------
43 // This routine is used to write the current value of 64-bit Global Pointer (GP).
47 // On Entry : The value need to be written.
49 // Return Value: The value have been written.
52 //----------------------------------------------------------------------------------
54 .type AsmWriteGp, @function
64 //---------------------------------------------------------------------------------
68 // This routine is used to read the current value of 64-bit Stack Pointer (SP).
74 // Return Value: The current SP value.
77 //----------------------------------------------------------------------------------
79 .type AsmReadSp, @function