Subversion Repositories HelenOS

Rev

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

Rev 4348 Rev 4691
Line 89... Line 89...
89
    prop = ofw_tree_getprop(node, "reg");
89
    prop = ofw_tree_getprop(node, "reg");
90
    if (!prop || !prop->value)
90
    if (!prop || !prop->value)
91
        return NULL;
91
        return NULL;
92
 
92
 
93
    ofw_upa_reg_t *reg = prop->value;
93
    ofw_upa_reg_t *reg = prop->value;
94
    count_t regs = prop->size / sizeof(ofw_upa_reg_t);
94
    size_t regs = prop->size / sizeof(ofw_upa_reg_t);
95
 
95
 
96
    if (regs < SABRE_INTERNAL_REG + 1)
96
    if (regs < SABRE_INTERNAL_REG + 1)
97
        return NULL;
97
        return NULL;
98
 
98
 
99
    uintptr_t paddr;
99
    uintptr_t paddr;
Line 136... Line 136...
136
    prop = ofw_tree_getprop(node, "reg");
136
    prop = ofw_tree_getprop(node, "reg");
137
    if (!prop || !prop->value)
137
    if (!prop || !prop->value)
138
        return NULL;
138
        return NULL;
139
 
139
 
140
    ofw_upa_reg_t *reg = prop->value;
140
    ofw_upa_reg_t *reg = prop->value;
141
    count_t regs = prop->size / sizeof(ofw_upa_reg_t);
141
    size_t regs = prop->size / sizeof(ofw_upa_reg_t);
142
 
142
 
143
    if (regs < PSYCHO_INTERNAL_REG + 1)
143
    if (regs < PSYCHO_INTERNAL_REG + 1)
144
        return NULL;
144
        return NULL;
145
 
145
 
146
    uintptr_t paddr;
146
    uintptr_t paddr;