Subversion Repositories HelenOS

Rev

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

Rev 1880 Rev 2012
Line 92... Line 92...
92
        if (!ph_addr) {
92
        if (!ph_addr) {
93
            ipc_answer_fast(callid, ENOENT, 0, 0);
93
            ipc_answer_fast(callid, ENOENT, 0, 0);
94
            return;
94
            return;
95
        }
95
        }
96
        *addr = as_get_mappable_page(PAGE_SIZE);
96
        *addr = as_get_mappable_page(PAGE_SIZE);
97
        map_physmem(ph_addr, *addr, 1, AS_AREA_READ | AS_AREA_CACHEABLE);
97
        physmem_map(ph_addr, *addr, 1, AS_AREA_READ | AS_AREA_CACHEABLE);
98
    }
98
    }
99
    ipc_answer_fast(callid, 0, (ipcarg_t)*addr, AS_AREA_READ);
99
    ipc_answer_fast(callid, 0, (ipcarg_t) *addr, AS_AREA_READ);
100
}
100
}
101
 
101
 
102
int main(int argc, char **argv)
102
int main(int argc, char **argv)
103
{
103
{
104
    ipc_call_t call;
104
    ipc_call_t call;