Subversion Repositories HelenOS

Rev

Rev 2122 | Rev 2128 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2122 Rev 2123
Line 228... Line 228...
228
 * Assume interrupts are disabled.
228
 * Assume interrupts are disabled.
229
 *
229
 *
230
 * @param order Size (2^order) of free space we are trying to find
230
 * @param order Size (2^order) of free space we are trying to find
231
 * @param pzone Pointer to preferred zone or NULL, on return contains zone number
231
 * @param pzone Pointer to preferred zone or NULL, on return contains zone number
232
 */
232
 */
233
static zone_t * find_free_zone_and_lock(uint8_t order, int *pzone)
233
static zone_t * find_free_zone_and_lock(uint8_t order, unsigned int *pzone)
234
{
234
{
235
    unsigned int i;
235
    unsigned int i;
236
    zone_t *z;
236
    zone_t *z;
237
    unsigned int hint = pzone ? *pzone : 0;
237
    unsigned int hint = pzone ? *pzone : 0;
238
   
238
   
Line 933... Line 933...
933
 * @param pzone  Preferred zone
933
 * @param pzone  Preferred zone
934
 *
934
 *
935
 * @return Physical address of the allocated frame.
935
 * @return Physical address of the allocated frame.
936
 *
936
 *
937
 */
937
 */
938
void * frame_alloc_generic(uint8_t order, int flags, int *pzone)
938
void * frame_alloc_generic(uint8_t order, int flags, unsigned int *pzone)
939
{
939
{
940
    ipl_t ipl;
940
    ipl_t ipl;
941
    int freed;
941
    int freed;
942
    pfn_t v;
942
    pfn_t v;
943
    zone_t *zone;
943
    zone_t *zone;