From aa7ab98849a594f3bd695caa23155e275eb30bda Mon Sep 17 00:00:00 2001 From: vprabhal Date: Tue, 18 Sep 2007 23:18:34 +0000 Subject: [PATCH] fixed one asm routine git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3890 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/BaseLib/Ipf/AccessKr.s | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/MdePkg/Library/BaseLib/Ipf/AccessKr.s b/MdePkg/Library/BaseLib/Ipf/AccessKr.s index 5a38954292..19e7740fc4 100644 --- a/MdePkg/Library/BaseLib/Ipf/AccessKr.s +++ b/MdePkg/Library/BaseLib/Ipf/AccessKr.s @@ -55,11 +55,19 @@ AsmReadKr0:: .text .type AsmWriteKr0, @function .proc AsmWriteKr0 -.regstk 1, 0, 0, 0 +.regstk 1, 3, 0, 0 AsmWriteKr0:: + alloc loc1=ar.pfs,1,4,0,0 ;; + mov loc2 = psr;; + rsm 0x6000;; // Masking interrupts mov ar.k0 = in0 + srlz.i;; + mov psr.l = loc2;; + srlz.i;; + srlz.d;; mov r8 = in0;; + mov ar.pfs=loc1 ;; br.ret.dpnt b0;; .endp AsmWriteKr0