fixed one asm routine

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3889 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
vprabhal 2007-09-18 23:18:04 +00:00
parent 0bd93d7166
commit 700e6ffd3e
1 changed files with 15 additions and 5 deletions

View File

@ -204,13 +204,23 @@ AsmReadIva::
.text
.type AsmWriteIva, @function
.proc AsmWriteIva
.regstk 1, 0, 0, 0
.regstk 1, 3, 0, 0
alloc loc1=ar.pfs,1,4,0,0 ;;
mov loc2 = psr
rsm 0x6000 // Make sure interrupts are masked
AsmWriteIva::
mov cr.iva = in0
mov r8 = in0;;
br.ret.dpnt b0;;
.endp AsmWriteIva
mov cr.iva = in0
srlz.i;;
mov psr.l = loc2;;
srlz.i;;
srlz.d;;
mov ar.pfs=loc1 ;;
mov r8 = in0;;
br.ret.dpnt b0;;
.endp AsmWriteIva
//---------------------------------------------------------------------------------