Removed duplicate PalCallStatic functions in different libraries. Moved ReadItc and...
[mirror_edk2.git] / MdePkg / Library / BaseCacheMaintenanceLib / Ipf / PalCallStatic.s
index 6863837..c21d742 100644 (file)
 .type   PalCallStatic, @function\r
 .regstk 5, 0, 0, 0\r
 PalCallStatic::\r
-        cmp.eq              p6 = r0, in0\r
+        cmp.eq              p15 = in0, r0\r
         mov                 r31 = in4\r
         mov                 r8  = ip\r
-(p6)    mov                 in0 = ar.k5\r
-        add                 r8  = (PalProcReturn - PalCallStatic), r8\r
-        mov                 in4 = b0\r
+\r
+(p15)   mov                 in0 = ar.k5\r
+        add                 r8  = (_PalProcReturn - PalCallStatic), r8\r
         mov                 r30 = in3\r
-        mov                 r29 = in2\r
+\r
+        mov                 in4 = psr\r
+        mov                 in3 = b0\r
         mov                 b7  = in0\r
-        mov                 in3 = psr\r
+\r
         rsm                 1 << 14                 // Disable interrupts\r
+        mov                 r29 = in2\r
         mov                 r28 = in1\r
-        mov                 in0 = 256\r
+\r
         mov                 b0  = r8\r
-        br.cond.sptk        b7\r
-PalProcReturn:\r
-        mov                 psr.l = in3\r
-        cmp.eq              p6 = in0, in1           // in1 == PAL_COPY_PAL?\r
-(p6)    cmp.eq              p6 = r0, r8             // Status == Success?\r
-(p6)    add                 in2 = r9, in2\r
-(p6)    mov                 ar.k5 = in2\r
-        mov                 b0  = in4\r
+        br.cond.sptk.many   b7\r
+\r
+_PalProcReturn:\r
+        mov                 psr.l = in4\r
+        mov                 b0  = in3\r
         br.ret.sptk.many    b0\r
 .endp   PalCallStatic\r