summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseLib/Ipf/PalCallStatic.s
diff options
context:
space:
mode:
authorbxing <bxing@6f19259b-4bc3-4df7-8a09-765794883524>2006-06-10 07:16:11 +0000
committerbxing <bxing@6f19259b-4bc3-4df7-8a09-765794883524>2006-06-10 07:16:11 +0000
commit4cbd21753299e5c119af283aa49443a47d7a72fb (patch)
tree14ef1af6d807534aa721845c5f0981339ca723c5 /MdePkg/Library/BaseLib/Ipf/PalCallStatic.s
parent8b4e96c42bf9bbbd9cfc46fdd5c43a09dfbdbf2e (diff)
downloadedk2-platforms-4cbd21753299e5c119af283aa49443a47d7a72fb.tar.xz
1. Updated SetJump() and LongJump() for IPF
2. Added assertion for SetJump() for all architectures 3. Added CpuSleep() for IPF git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@464 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseLib/Ipf/PalCallStatic.s')
-rw-r--r--MdePkg/Library/BaseLib/Ipf/PalCallStatic.s7
1 files changed, 4 insertions, 3 deletions
diff --git a/MdePkg/Library/BaseLib/Ipf/PalCallStatic.s b/MdePkg/Library/BaseLib/Ipf/PalCallStatic.s
index 7fa68e15f6..686383793d 100644
--- a/MdePkg/Library/BaseLib/Ipf/PalCallStatic.s
+++ b/MdePkg/Library/BaseLib/Ipf/PalCallStatic.s
@@ -22,7 +22,7 @@
.type PalCallStatic, @function
.regstk 5, 0, 0, 0
PalCallStatic::
- cmp.ne p6, p7 = r0, in0
+ cmp.eq p6 = r0, in0
mov r31 = in4
mov r8 = ip
(p6) mov in0 = ar.k5
@@ -39,8 +39,9 @@ PalCallStatic::
br.cond.sptk b7
PalProcReturn:
mov psr.l = in3
- cmp.eq p6, p7 = in0, in1 // in1 == PAL_COPY_PAL?
-(p6) cmp.eq p6, p7 = r0, r8 // Status == Success?
+ cmp.eq p6 = in0, in1 // in1 == PAL_COPY_PAL?
+(p6) cmp.eq p6 = r0, r8 // Status == Success?
+(p6) add in2 = r9, in2
(p6) mov ar.k5 = in2
mov b0 = in4
br.ret.sptk.many b0