static int vma_add_mapping(struct mm_struct *mm, abi_ulong start,

    abi_ulong end, abi_ulong flags)

{

    struct vm_area_struct *vma;



    if ((vma = qemu_mallocz(sizeof (*vma))) == NULL)

        return (-1);



    vma->vma_start = start;

    vma->vma_end = end;

    vma->vma_flags = flags;



    TAILQ_INSERT_TAIL(&mm->mm_mmap, vma, vma_link);

    mm->mm_count++;



    return (0);

}

static int vma_add_mapping(struct mm_struct *mm, abi_ulong start,

    abi_ulong end, abi_ulong flags)

{

    struct vm_area_struct *vma;



    if ((vma = qemu_mallocz(sizeof (*vma))) == NULL)

        return (-1);



    vma->vma_start = start;

    vma->vma_end = end;

    vma->vma_flags = flags;



    TAILQ_INSERT_TAIL(&mm->mm_mmap, vma, vma_link);

    mm->mm_count++;



    return (0);

}

static int FUNC_0(struct mm_struct *VAR_0, abi_ulong VAR_1,

    abi_ulong VAR_2, abi_ulong VAR_3)

{

    struct vm_area_struct *VAR_4;



    if ((VAR_4 = qemu_mallocz(sizeof (*VAR_4))) == NULL)

        return (-1);



    VAR_4->vma_start = VAR_1;

    VAR_4->vma_end = VAR_2;

    VAR_4->vma_flags = VAR_3;



    TAILQ_INSERT_TAIL(&VAR_0->mm_mmap, VAR_4, vma_link);

    VAR_0->mm_count++;



    return (0);

}

static int FUNC_0(struct mm_struct *VAR_0, abi_ulong VAR_1,
abi_ulong VAR_2, abi_ulong VAR_3)
{ struct vm_area_struct *VAR_4; if ((VAR_4 = qemu_mallocz(sizeof (*VAR_4))) == NULL)
return (-1); VAR_4->vma_start = VAR_1; VAR_4->vma_end = VAR_2; VAR_4->vma_flags = VAR_3; TAILQ_INSERT_TAIL(&VAR_0->mm_mmap, VAR_4, vma_link); VAR_0->mm_count++; return (0); }