Diff of /trunk/mkinitrd-magellan/klibc/usr/klibc/arch/arm/vfork.S
Parent Directory
| Revision Log
| Patch
4 |
* vfork - nasty system call which must not use the stack. |
* vfork - nasty system call which must not use the stack. |
5 |
*/ |
*/ |
6 |
|
|
7 |
|
#include <klibc/asmmacros.h> |
8 |
#include <asm/unistd.h> |
#include <asm/unistd.h> |
9 |
|
|
10 |
.type vfork,#function |
.type vfork,#function |
26 |
ldrcs r3, 1f |
ldrcs r3, 1f |
27 |
mvncs r0, #0 |
mvncs r0, #0 |
28 |
strcs r2, [r3] |
strcs r2, [r3] |
29 |
mov pc, lr |
BX(lr) |
30 |
|
|
31 |
.balign 4 |
.balign 4 |
32 |
1: |
1: |
50 |
str r2, [r1] |
str r2, [r1] |
51 |
neg r0, r0 |
neg r0, r0 |
52 |
1: |
1: |
53 |
mov pc, lr |
BX(lr) |
54 |
|
|
55 |
.balign 4 |
.balign 4 |
56 |
2: |
2: |
|
Legend:
Removed from v.1296 |
|
changed lines |
|
Added in v.1297 |
|
|