/// @file\r
/// IPF specific AsmReadKrX() and AsmWriteKrX functions, 'X' is from '0' to '7'\r
///\r
-/// Copyright (c) 2006, Intel Corporation\r
+/// Copyright (c) 2006 - 2008, 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
.text\r
.type AsmWriteKr0, @function\r
.proc AsmWriteKr0\r
-.regstk 1, 0, 0, 0\r
+.regstk 1, 3, 0, 0\r
\r
AsmWriteKr0::\r
+ alloc loc1=ar.pfs,1,4,0,0 ;;\r
+ mov loc2 = psr;;\r
+ rsm 0x6000;; // Masking interrupts\r
mov ar.k0 = in0\r
+ srlz.i;;\r
+ mov psr.l = loc2;;\r
+ srlz.i;;\r
+ srlz.d;;\r
mov r8 = in0;;\r
+ mov ar.pfs=loc1 ;;\r
br.ret.dpnt b0;;\r
.endp AsmWriteKr0\r
\r