summaryrefslogtreecommitdiffstats
path: root/nuttx/arch/sim/src/up_setjmp.S
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/sim/src/up_setjmp.S')
-rw-r--r--nuttx/arch/sim/src/up_setjmp.S22
1 files changed, 11 insertions, 11 deletions
diff --git a/nuttx/arch/sim/src/up_setjmp.S b/nuttx/arch/sim/src/up_setjmp.S
index 56c72370c7..a65317c65a 100644
--- a/nuttx/arch/sim/src/up_setjmp.S
+++ b/nuttx/arch/sim/src/up_setjmp.S
@@ -1,8 +1,8 @@
/**************************************************************************
* up_setjmp.S
*
- * Copyright (C) 2007 Gregory Nutt. All rights reserved.
- * Author: Gregory Nutt <spudmonkey@racsa.co.cr>
+ * Copyright (C) 2007, 2012 Gregory Nutt. All rights reserved.
+ * Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -104,11 +104,11 @@ SYMBOL(up_setjmp):
/* Save the framepointer */
- movl %ebp, (JB_EBP)(%eax)
+ movl %ebp, (JB_EBP)(%eax)
/* And return 0 */
- xorl %eax, %eax
+ xorl %eax, %eax
ret
#ifndef __CYGWIN__
.size SYMBOL(up_setjmp), . - SYMBOL(up_setjmp)
@@ -123,19 +123,19 @@ SYMBOL(up_longjmp):
/* Save the return address now. */
- movl (JB_PC)(%ecx), %edx
+ movl (JB_PC)(%ecx), %edx
/* Restore registers. */
- movl (JB_EBX)(%ecx), %ebx
- movl (JB_ESI)(%ecx), %esi
- movl (JB_EDI)(%ecx), %edi
- movl (JB_EBP)(%ecx), %ebp
- movl (JB_SP)(%ecx), %esp
+ movl (JB_EBX)(%ecx), %ebx
+ movl (JB_ESI)(%ecx), %esi
+ movl (JB_EDI)(%ecx), %edi
+ movl (JB_EBP)(%ecx), %ebp
+ movl (JB_SP)(%ecx), %esp
/* Jump to saved PC. */
- jmp *%edx
+ jmp *%edx
#ifndef __CYGWIN__
.size SYMBOL(up_longjmp), . - SYMBOL(up_longjmp)
#endif