Subversion Repositories HelenOS

Rev

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

Rev 3908 Rev 3972
Line 55... Line 55...
55
static void init_e820_memory(pfn_t minconf)
55
static void init_e820_memory(pfn_t minconf)
56
{
56
{
57
    unsigned int i;
57
    unsigned int i;
58
    pfn_t start, conf;
58
    pfn_t start, conf;
59
    size_t size;
59
    size_t size;
60
 
60
   
61
    for (i = 0; i < e820counter; i++) {
61
    for (i = 0; i < e820counter; i++) {
62
        if (e820table[i].type == MEMMAP_MEMORY_AVAILABLE) {
62
        if (e820table[i].type == MEMMAP_MEMORY_AVAILABLE) {
63
            start = ADDR2PFN(ALIGN_UP(e820table[i].base_address, FRAME_SIZE));
63
            start = ADDR2PFN(ALIGN_UP(e820table[i].base_address, FRAME_SIZE));
64
            size = SIZE2FRAMES(ALIGN_DOWN(e820table[i].size, FRAME_SIZE));
64
            size = SIZE2FRAMES(ALIGN_DOWN(e820table[i].size, FRAME_SIZE));
65
           
65