diff options
Diffstat (limited to '05/musl-0.6.0/src/thread/i386/clone.s')
-rw-r--r-- | 05/musl-0.6.0/src/thread/i386/clone.s | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/05/musl-0.6.0/src/thread/i386/clone.s b/05/musl-0.6.0/src/thread/i386/clone.s new file mode 100644 index 0000000..53405cf --- /dev/null +++ b/05/musl-0.6.0/src/thread/i386/clone.s @@ -0,0 +1,27 @@ +.text +.global __uniclone +.type __uniclone,%function +__uniclone: + movl 4(%esp),%ecx + subl $24,%ecx + movl 8(%esp),%eax + movl %eax,16(%ecx) + movl 12(%esp),%eax + movl %eax,24(%ecx) + pushl %ebx + pushl %esi + pushl %edi + pushl %ebp + movl %eax,8(%eax) + leal 20(%eax),%edx + leal 4(%eax),%esi + movl %edx,%edi + movl $0x7d0f00,%ebx + movl $120,%eax + int $128 + popl %ebp + popl %edi + popl %esi + popl %ebx + ret +.size __uniclone,.-__uniclone |