From b7f6fe2249f997556dc7ab94ce02f4960a3905b9 Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 2 May 2012 15:36:19 +0000 Subject: [PATCH] Fix some warnings and fix some simulator builds git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4688 42af7a65-404d-4744-a932-0658087f49c3 --- arch/sim/src/up_setjmp.S | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/arch/sim/src/up_setjmp.S b/arch/sim/src/up_setjmp.S index 56c72370c7..a65317c65a 100644 --- a/arch/sim/src/up_setjmp.S +++ b/arch/sim/src/up_setjmp.S @@ -1,8 +1,8 @@ /************************************************************************** * up_setjmp.S * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt + * Copyright (C) 2007, 2012 Gregory Nutt. All rights reserved. + * Author: Gregory Nutt * * 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