__brk.S revision 103ccde8fe2f2c8abde914a8ba736b2e9cb8d20b
1/* Generated by gensyscalls.py. Do not edit. */
2
3#include <asm/unistd.h>
4#include <linux/err.h>
5#include <machine/asm.h>
6
7ENTRY(__brk)
8    pushl   %ebx
9    mov     8(%esp), %ebx
10    movl    $__NR_brk, %eax
11    int     $0x80
12    cmpl    $-MAX_ERRNO, %eax
13    jb      1f
14    negl    %eax
15    pushl   %eax
16    call    __set_errno
17    addl    $4, %esp
18    orl     $-1, %eax
191:
20    popl    %ebx
21    ret
22END(__brk)
23