Subversion Repositories HelenOS-historic

Rev

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

Rev 534 Rev 659
Line 46... Line 46...
46
    memmap_t memmap[MEMMAP_MAX_RECORDS];
46
    memmap_t memmap[MEMMAP_MAX_RECORDS];
47
    size_t ret = ofw_get_property(handle, "reg", &memmap, sizeof(memmap));
47
    size_t ret = ofw_get_property(handle, "reg", &memmap, sizeof(memmap));
48
    if (ret == -1)
48
    if (ret == -1)
49
        panic("Device /memory has no reg property\n");
49
        panic("Device /memory has no reg property\n");
50
   
50
   
51
    size_t total;
51
    size_t total = 0;
52
    int i;
52
    int i;
53
   
53
   
54
    for (i = 0; i < MEMMAP_MAX_RECORDS; i++) {
54
    for (i = 0; i < MEMMAP_MAX_RECORDS; i++) {
55
        if (memmap[i].size == 0)
55
        if (memmap[i].size == 0)
56
            break;
56
            break;