Changeset f8ddd17 in mainline for uspace/fb/fb.c
- Timestamp:
- 2006-12-09T20:20:50Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b82a13c
- Parents:
- 9ab9c2ec
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/fb/fb.c
r9ab9c2ec rf8ddd17 705 705 /* We accept one area for data interchange */ 706 706 if (IPC_GET_ARG1(*call) == shm_id) { 707 void *dest = as_get_mappable_page(IPC_GET_ARG2(*call)); 707 void *dest = as_get_mappable_page(IPC_GET_ARG2(*call), 708 PAGE_COLOR(IPC_GET_ARG1(*call))); 708 709 shm_size = IPC_GET_ARG2(*call); 709 if (!ipc_answer_fast(callid, 0, (sysarg_t) dest, 0))710 if (!ipc_answer_fast(callid, 0, (sysarg_t) dest, 0)) 710 711 shm = dest; 711 712 else … … 717 718 } else { 718 719 intersize = IPC_GET_ARG2(*call); 719 receive_comm_area(callid, call,(void *)&interbuffer);720 receive_comm_area(callid, call, (void *) &interbuffer); 720 721 } 721 722 return 1; … … 1283 1284 1284 1285 asz = fb_scanline * fb_height; 1285 fb_addr = as_get_mappable_page(asz );1286 fb_addr = as_get_mappable_page(asz, (int) sysinfo_value("fb.address.color")); 1286 1287 1287 1288 physmem_map(fb_ph_addr, fb_addr, ALIGN_UP(asz, PAGE_SIZE) >> PAGE_WIDTH, 1288 1289 AS_AREA_READ | AS_AREA_WRITE); 1289 1290 1290 if (screen_init(fb_addr, fb_width, fb_height, fb_scanline, fb_visual, fb_invert_colors)) 1291 if (screen_init(fb_addr, fb_width, fb_height, fb_scanline, fb_visual, 1292 fb_invert_colors)) 1291 1293 return 0; 1292 1294
Note:
See TracChangeset
for help on using the changeset viewer.