Subversion Repositories HelenOS

Rev

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

Rev 1841 Rev 1888
Line 88... Line 88...
88
    ASSERT(size <= 4*1024*1024);
88
    ASSERT(size <= 4*1024*1024);
89
   
89
   
90
    if (size <= FRAME_SIZE)
90
    if (size <= FRAME_SIZE)
91
        order = 0;
91
        order = 0;
92
    else
92
    else
93
        order = (fnzb32(size - 1) + 1) - FRAME_WIDTH;
93
        order = (fnzb64(size - 1) + 1) - FRAME_WIDTH;
94
 
94
 
95
    /*
95
    /*
96
     * Use virtual addresses that are beyond the limit of physical memory.
96
     * Use virtual addresses that are beyond the limit of physical memory.
97
     * Thus, the physical address space will not be wasted by holes created
97
     * Thus, the physical address space will not be wasted by holes created
98
     * by frame_alloc().
98
     * by frame_alloc().