Rev 1462 | Rev 1501 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1462 | Rev 1493 | ||
---|---|---|---|
Line 86... | Line 86... | ||
86 | if (!ph_addr) { |
86 | if (!ph_addr) { |
87 | ipc_answer_fast(callid, ENOENT, 0, 0); |
87 | ipc_answer_fast(callid, ENOENT, 0, 0); |
88 | return; |
88 | return; |
89 | } |
89 | } |
90 | addr = (void *)(200*1024*1024); /* TODO: intelligent freemem space */ |
90 | addr = (void *)(200*1024*1024); /* TODO: intelligent freemem space */ |
91 | map_physmem(task_get_id(), ph_addr, addr, 1, |
- | |
92 | AS_AREA_READ | AS_AREA_CACHEABLE); |
91 | map_physmem(ph_addr, addr, 1, AS_AREA_READ | AS_AREA_CACHEABLE); |
93 | } |
92 | } |
94 | ipc_answer_fast(callid, 0, (ipcarg_t)addr, AS_AREA_READ | AS_AREA_CACHEABLE); |
93 | ipc_answer_fast(callid, 0, (ipcarg_t)addr, AS_AREA_READ | AS_AREA_CACHEABLE); |
95 | } |
94 | } |
96 | 95 | ||
97 | int main(int argc, char **argv) |
96 | int main(int argc, char **argv) |