mirror of https://github.com/acidanthera/audk.git
fixed one asm routine
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3890 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
700e6ffd3e
commit
aa7ab98849
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue