Home | History | Annotate | Download | only in Ipf
      1 /// @file
      2 ///  IPF specific AsmReadKr7() and AsmWriteKr7()
      3 ///
      4 /// Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
      5 /// 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.
      9 ///
     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.
     12 ///
     13 /// Module Name: AccessKr7.s
     14 ///
     15 ///
     16 
     17 //---------------------------------------------------------------------------------
     18 //++
     19 // AsmReadKr7
     20 //
     21 // This routine is used to get KR7.
     22 //
     23 // Arguments :
     24 //
     25 // On Entry :  None.
     26 //
     27 // Return Value: The value store in KR7.
     28 //
     29 //--
     30 //----------------------------------------------------------------------------------
     31 .text
     32 .type   AsmReadKr7, @function
     33 .proc   AsmReadKr7
     34 
     35 AsmReadKr7::
     36         mov             r8 = ar.k7;;
     37         br.ret.dpnt     b0;;
     38 .endp   AsmReadKr7
     39 
     40 //---------------------------------------------------------------------------------
     41 //++
     42 // AsmWriteKr7
     43 //
     44 // This routine is used to write KR7.
     45 //
     46 // Arguments :
     47 //
     48 // On Entry :  None.
     49 //
     50 // Return Value: The value written to the KR7.
     51 //
     52 //--
     53 //----------------------------------------------------------------------------------
     54 .text
     55 .type   AsmWriteKr7, @function
     56 .proc   AsmWriteKr7
     57 .regstk 1, 3, 0, 0
     58 
     59 AsmWriteKr7::
     60         mov             ar.k7 = in0
     61         mov             r8 = in0;;
     62         br.ret.dpnt     b0;;
     63 .endp   AsmWriteKr7
     64