Rev 1493 | Rev 1531 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1493 | Rev 1501 | ||
---|---|---|---|
Line 85... | Line 85... | ||
85 | ph_addr = (void *)sysinfo_value("clock.faddr"); |
85 | ph_addr = (void *)sysinfo_value("clock.faddr"); |
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 = as_get_mappable_page(PAGE_SIZE); |
91 | map_physmem(ph_addr, addr, 1, AS_AREA_READ | AS_AREA_CACHEABLE); |
91 | map_physmem(ph_addr, addr, 1, AS_AREA_READ | AS_AREA_CACHEABLE); |
92 | } |
92 | } |
93 | 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); |
94 | } |
94 | } |
95 | 95 |