mirror of https://github.com/acidanthera/audk.git
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:
parent
0bd93d7166
commit
700e6ffd3e
|
@ -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
|
||||
|
||||
|
||||
//---------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue