Bug 436531 - asmXPTC_InvokeByIndex Bogus Return Value in WinMobile builds. sans test cases. r=blassey
authorJohn Wolfe <wolfe@lobo.us>
Wed, 08 Oct 2008 21:17:11 -0700
changeset 20191 6e049856d31652091ffa3fed5bd22213d9944309
parent 20190 b0120922280c2e168417ed145c54efa3f1020411
child 20192 5b0da484aac6efdc5deee44e7b672a6ee28b1fe0
push idunknown
push userunknown
push dateunknown
reviewersblassey
bugs436531
milestone1.9.1b2pre
Bug 436531 - asmXPTC_InvokeByIndex Bogus Return Value in WinMobile builds. sans test cases. r=blassey
xpcom/reflect/xptcall/src/md/win32/xptc_arm_ceppc.asm
--- a/xpcom/reflect/xptcall/src/md/win32/xptc_arm_ceppc.asm
+++ b/xpcom/reflect/xptcall/src/md/win32/xptc_arm_ceppc.asm
@@ -282,19 +282,18 @@ FuncName    SETS    VBar:CC:"?Stub$Numbe
 
 	mov	lr, pc		  ; call mathod
 	mov	pc, ip		  ;
 
 	add	sp, sp, r4	  ; restore stack pointer
 				  ; the result is in r0
 
 
-	ldr       r0, [sp]        ; Start unwinding the stack
+	str       r0, [sp]        ; Start unwinding the stack
 	str       r0, [sp, #0x20] 
-	ldr       r0, [sp, #0x20]
 
 ; 225  : }    
 
 	add       sp, sp, #0x2C
 	ldmia     sp, {r4, r5, sp, pc}
 
 	ENTRY_END