repo.or.cz
/
newlib-cygwin.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Cygwin: Add new APIs tc[gs]etwinsize()
[newlib-cygwin.git]
/
newlib
/
libc
/
sys
/
sysvi386
/
_setjmp.S
blob
8f191b59a7b2b3161435e8aaa358d7855cbb95af
1
/
2
/ our buffer looks like:
3
/ eax,ebx,ecx,edx,esi,edi,esp,ebp,pc
4
5
.globl _setjmp
6
.globl setjmp
7
_setjmp:
8
setjmp:
9
pushl %ebx
10
movl 8(%esp), %ebx
11
movl %eax, (%ebx)
12
popl %eax
13
movl %eax, 4(%ebx)
14
movl %ecx, 8(%ebx)
15
movl %edx, 12(%ebx)
16
movl %esi, 16(%ebx)
17
movl %edi, 20(%ebx)
18
movl %esp, 24(%ebx)
19
movl %ebp, 28(%ebx)
20
movl (%esp), %eax
21
movl %eax, 32(%ebx)
22
xorl %eax, %eax
23
ret
24