Last change
on this file was
444,
checked in by satin@…, 6 years ago
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
File size:
384 bytes
|
Line | |
---|
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 | |
---|
Note: See
TracBrowser
for help on using the repository browser.