Subversion Repositories HelenOS

Rev

Rev 2071 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2071 Rev 2250
Line 46... Line 46...
46
    /* Enforce minimal alignment. */
46
    /* Enforce minimal alignment. */
47
    alignment = ALIGN_UP(alignment, 4);
47
    alignment = ALIGN_UP(alignment, 4);
48
   
48
   
49
    addr = ballocs->base + ALIGN_UP(ballocs->size, alignment);
49
    addr = ballocs->base + ALIGN_UP(ballocs->size, alignment);
50
   
50
 
-
 
51
    if (ALIGN_UP(ballocs->size, alignment) + size > BALLOC_MAX_SIZE)
-
 
52
        return NULL;
-
 
53
       
51
    ballocs->size = ALIGN_UP(ballocs->size, alignment) + size;
54
    ballocs->size = ALIGN_UP(ballocs->size, alignment) + size;
52
   
55
   
53
    return (void *) addr;
56
    return (void *) addr;
54
}
57
}