2 * Written by H. Peter Anvin <hpa@zytor.com>
3 * Brought in from Linux v4.4 and modified for U-Boot
4 * From Linux arch/um/sys-i386/setjmp.S
6 * SPDX-License-Identifier: GPL-2.0
12 * The jmp_buf is assumed to contain the following, in order:
24 .type setjmp, @function
31 popl %ecx /* Return address, and adjust the stack */
32 xorl %eax, %eax /* Return value */
34 movl %esp, 4(%edx) /* Post-return %esp! */
35 pushl %ecx /* Make the call/return stack happy */
39 movl %ecx, 20(%edx) /* Return address */
42 /* Provide function size if needed */
43 .size setjmp, .-setjmp
47 .type longjmp, @function
52 movl 4(%esp), %edx /* jmp_ptr address */
61 .size longjmp, .-longjmp