Subversion Repositories HelenOS

Rev

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

Rev 2702 Rev 2712
Line 94... Line 94...
94
};
94
};
95
 
95
 
96
 
96
 
97
static int cmd_e820mem(cmd_arg_t *argv)
97
static int cmd_e820mem(cmd_arg_t *argv)
98
{
98
{
99
    int i;
99
    unsigned int i;
100
    char *name;
100
    char *name;
101
 
101
   
-
 
102
    printf("Base               Size               Name\n");
-
 
103
    printf("------------------ ------------------ ---------\n");
-
 
104
       
102
    for (i = 0; i < e820counter; i++) {
105
    for (i = 0; i < e820counter; i++) {
103
        if (e820table[i].type <= MEMMAP_MEMORY_UNUSABLE)
106
        if (e820table[i].type <= MEMMAP_MEMORY_UNUSABLE)
104
            name = e820names[e820table[i].type];
107
            name = e820names[e820table[i].type];
105
        else
108
        else
106
            name = "invalid";
109
            name = "invalid";
107
        printf("%.*p %#.16llXB %s\n", sizeof(unative_t) * 2,
-
 
-
 
110
       
108
            (unative_t) e820table[i].base_address,
111
        printf("%#18llx %#18llx %s\n", e820table[i].base_address,
109
            (uint64_t) e820table[i].size, name);
112
            e820table[i].size, name);
110
    }          
113
    }          
111
    return 0;
114
    return 0;
112
}
115
}
113
 
116
 
114
 
117