You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/04/18 11:33:47 UTC
[incubator-nuttx] branch master updated: Fix saved %esp value in
up_saveusercontext() for qemu-i486
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 00049aa Fix saved %esp value in up_saveusercontext() for qemu-i486
00049aa is described below
commit 00049aa482f671192f6a9c338cc8210b4bbe1a93
Author: Nakamura, Yuuichi <Yu...@sony.com>
AuthorDate: Sat Apr 18 10:44:37 2020 +0900
Fix saved %esp value in up_saveusercontext() for qemu-i486
---
arch/x86/src/qemu/qemu_saveusercontext.S | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/x86/src/qemu/qemu_saveusercontext.S b/arch/x86/src/qemu/qemu_saveusercontext.S
index 0620bbf..beae508 100644
--- a/arch/x86/src/qemu/qemu_saveusercontext.S
+++ b/arch/x86/src/qemu/qemu_saveusercontext.S
@@ -132,16 +132,16 @@ up_saveusercontext:
* EIP
* CS ...
* EFLAGS EIP
- * -> ESP CS
+ * ESP CS
* ESP->Return address SS EFLAGS
- * Argument Argument Argument
+ * Argument -> Argument Argument
*
* NOTE: We don't yet know the value for REG_ESP! That depends upon
* if a priority change occurs or not.
*/
- leal -4(%esp), %ecx
+ leal 4(%esp), %ecx
movl %ecx, (4*REG_SP)(%eax)
/* Fetch the PC from the stack and save it in the save block */