Subversion Repositories HelenOS

Rev

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

Rev 3692 Rev 3826
Line 201... Line 201...
201
void *ofw_translate(const void *virt)
201
void *ofw_translate(const void *virt)
202
{
202
{
203
    ofw_arg_t result[4];
203
    ofw_arg_t result[4];
204
    int shift;
204
    int shift;
205
 
205
 
206
    if (ofw_call("call-method", 3, 5, result, "translate", ofw_mmu,
206
    if (ofw_call("call-method", 4, 5, result, "translate", ofw_mmu,
207
        virt) != 0) {
207
        virt, 0) != 0) {
208
        puts("Error: MMU method translate() failed, halting.\n");
208
        puts("Error: MMU method translate() failed, halting.\n");
209
        halt();
209
        halt();
210
    }
210
    }
211
 
211
 
212
    if (ofw_translate_failed(result[0]))
212
    if (ofw_translate_failed(result[0]))