Subversion Repositories HelenOS

Rev

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

Rev 2071 Rev 2745
Line 53... Line 53...
53
        return false;
53
        return false;
54
       
54
       
55
    ranges = prop->size / sizeof(ofw_fhc_range_t);
55
    ranges = prop->size / sizeof(ofw_fhc_range_t);
56
    range = prop->value;
56
    range = prop->value;
57
   
57
   
58
    int i;
58
    unsigned int i;
59
   
59
   
60
    for (i = 0; i < ranges; i++) {
60
    for (i = 0; i < ranges; i++) {
61
        if (overlaps(reg->addr, reg->size, range[i].child_base, range[i].size)) {
61
        if (overlaps(reg->addr, reg->size, range[i].child_base, range[i].size)) {
62
            uintptr_t addr;
62
            uintptr_t addr;
63
           
63
           
Line 95... Line 95...
95
        return false;
95
        return false;
96
       
96
       
97
    ranges = prop->size / sizeof(ofw_central_range_t);
97
    ranges = prop->size / sizeof(ofw_central_range_t);
98
    range = prop->value;
98
    range = prop->value;
99
   
99
   
100
    int i;
100
    unsigned int i;
101
   
101
   
102
    for (i = 0; i < ranges; i++) {
102
    for (i = 0; i < ranges; i++) {
103
        if (overlaps(reg->addr, reg->size, range[i].child_base, range[i].size)) {
103
        if (overlaps(reg->addr, reg->size, range[i].child_base, range[i].size)) {
104
            *pa = range[i].parent_base + (reg->addr - range[i].child_base);
104
            *pa = range[i].parent_base + (reg->addr - range[i].child_base);
105
            return true;
105
            return true;