Subversion Repositories HelenOS

Rev

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

Rev 2071 Rev 2087
Line 63... Line 63...
63
        if (e820table[i].type == MEMMAP_MEMORY_AVAILABLE) {
63
        if (e820table[i].type == MEMMAP_MEMORY_AVAILABLE) {
64
            start = ADDR2PFN(ALIGN_UP(e820table[i].base_address,
64
            start = ADDR2PFN(ALIGN_UP(e820table[i].base_address,
65
                          FRAME_SIZE));
65
                          FRAME_SIZE));
66
            size = SIZE2FRAMES(ALIGN_DOWN(e820table[i].size,
66
            size = SIZE2FRAMES(ALIGN_DOWN(e820table[i].size,
67
                           FRAME_SIZE));
67
                           FRAME_SIZE));
68
            if (minconf < start || minconf >= start+size)
68
            if (minconf < start || minconf >= start + size)
69
                conf = start;
69
                conf = start;
70
            else
70
            else
71
                conf = minconf;
71
                conf = minconf;
72
            zone_create(start, size, conf, 0);
72
            zone_create(start, size, conf, 0);
73
            if (last_frame < ALIGN_UP(e820table[i].base_address + e820table[i].size, FRAME_SIZE))
73
            if (last_frame < ALIGN_UP(e820table[i].base_address + e820table[i].size, FRAME_SIZE))