Rev 2131 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2131 | Rev 2292 | ||
---|---|---|---|
Line 753... | Line 753... | ||
753 | 753 | ||
754 | switch (IPC_GET_METHOD(*call)) { |
754 | switch (IPC_GET_METHOD(*call)) { |
755 | case IPC_M_AS_AREA_SEND: |
755 | case IPC_M_AS_AREA_SEND: |
756 | /* We accept one area for data interchange */ |
756 | /* We accept one area for data interchange */ |
757 | if (IPC_GET_ARG1(*call) == shm_id) { |
757 | if (IPC_GET_ARG1(*call) == shm_id) { |
758 | void *dest = as_get_mappable_page(IPC_GET_ARG2(*call), |
758 | void *dest = as_get_mappable_page(IPC_GET_ARG2(*call)); |
759 | PAGE_COLOR(IPC_GET_ARG1(*call))); |
- | |
760 | shm_size = IPC_GET_ARG2(*call); |
759 | shm_size = IPC_GET_ARG2(*call); |
761 | if (!ipc_answer_fast(callid, 0, (sysarg_t) dest, 0)) |
760 | if (!ipc_answer_fast(callid, 0, (sysarg_t) dest, 0)) |
762 | shm = dest; |
761 | shm = dest; |
763 | else |
762 | else |
764 | shm_id = 0; |
763 | shm_id = 0; |
Line 1367... | Line 1366... | ||
1367 | fb_scanline = sysinfo_value("fb.scanline"); |
1366 | fb_scanline = sysinfo_value("fb.scanline"); |
1368 | fb_visual = sysinfo_value("fb.visual"); |
1367 | fb_visual = sysinfo_value("fb.visual"); |
1369 | fb_invert_colors = sysinfo_value("fb.invert-colors"); |
1368 | fb_invert_colors = sysinfo_value("fb.invert-colors"); |
1370 | 1369 | ||
1371 | asz = fb_scanline * fb_height; |
1370 | asz = fb_scanline * fb_height; |
1372 | fb_addr = as_get_mappable_page(asz, (int) |
1371 | fb_addr = as_get_mappable_page(asz); |
1373 | sysinfo_value("fb.address.color")); |
- | |
1374 | 1372 | ||
1375 | physmem_map(fb_ph_addr, fb_addr, ALIGN_UP(asz, PAGE_SIZE) >> |
1373 | physmem_map(fb_ph_addr, fb_addr, ALIGN_UP(asz, PAGE_SIZE) >> |
1376 | PAGE_WIDTH, AS_AREA_READ | AS_AREA_WRITE); |
1374 | PAGE_WIDTH, AS_AREA_READ | AS_AREA_WRITE); |
1377 | 1375 | ||
1378 | if (screen_init(fb_addr, fb_width, fb_height, fb_scanline, fb_visual, |
1376 | if (screen_init(fb_addr, fb_width, fb_height, fb_scanline, fb_visual, |