diff options
author | 2017-04-25 03:31:15 -0700 | |
---|---|---|
committer | 2017-05-22 06:48:08 +0000 | |
commit | bb756eebdac6fd24e8919e2c43f7d2c8c4091f59 (patch) | |
tree | ca11e03542edf2d8f631efeca5e1626d211107e3 /qemu/roms/ipxe/src/arch/i386/core/setjmp.S | |
parent | a14b48d18a9ed03ec191cf16b162206998a895ce (diff) |
Adding qemu as a submodule of KVMFORNFV
This Patch includes the changes to add qemu as a submodule to
kvmfornfv repo and make use of the updated latest qemu for the
execution of all testcase
Change-Id: I1280af507a857675c7f81d30c95255635667bdd7
Signed-off-by:RajithaY<rajithax.yerrumsetty@intel.com>
Diffstat (limited to 'qemu/roms/ipxe/src/arch/i386/core/setjmp.S')
-rw-r--r-- | qemu/roms/ipxe/src/arch/i386/core/setjmp.S | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/qemu/roms/ipxe/src/arch/i386/core/setjmp.S b/qemu/roms/ipxe/src/arch/i386/core/setjmp.S deleted file mode 100644 index 81d3b4911..000000000 --- a/qemu/roms/ipxe/src/arch/i386/core/setjmp.S +++ /dev/null @@ -1,64 +0,0 @@ -FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ) - - .text - .arch i386 - .code32 - - /* Must match jmp_buf structure layout */ - .struct 0 -env_retaddr: .long 0 -env_stack: .long 0 -env_ebx: .long 0 -env_esi: .long 0 -env_edi: .long 0 -env_ebp: .long 0 - .previous - -/* - * Save stack context for non-local goto - */ - .globl setjmp -setjmp: - /* Get jmp_buf pointer in %edx */ - movl 4(%esp),%edx - /* Save return address */ - movl 0(%esp),%eax - movl %eax, env_retaddr(%edx) - /* Save stack pointer */ - movl %esp, env_stack(%edx) - /* Save other registers */ - movl %ebx, env_ebx(%edx) - movl %esi, env_esi(%edx) - movl %edi, env_edi(%edx) - movl %ebp, env_ebp(%edx) - /* Return 0 when returning as setjmp() */ - xorl %eax, %eax - ret - .size setjmp, . - setjmp - -/* - * Non-local jump to a saved stack context - */ - .globl longjmp -longjmp: - /* Get jmp_buf pointer in %edx */ - movl 4(%esp),%edx - /* Get result in %eax */ - movl 8(%esp),%eax - /* Force result to non-zero */ - testl %eax, %eax - jnz 1f - incl %eax -1: /* Restore stack pointer */ - movl env_stack(%edx), %esp - /* Restore other registers */ - movl env_ebx(%edx), %ebx - movl env_esi(%edx), %esi - movl env_edi(%edx), %edi - movl env_ebp(%edx), %ebp - /* Replace return address on the new stack */ - popl %ecx /* discard */ - pushl env_retaddr(%edx) - /* Return to setjmp() caller */ - ret - .size longjmp, . - longjmp |